You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Scenario:
Given a blog post named "Random" with:
"""
Some Title, Eh?
===============
Here is the first paragraph of my blog post.
Lorem ipsum dolor sit amet, consectetur adipiscing
elit.
"""
Not easily at present. You could achieve something similar using a very general pattern to match each line in the body and a change in format, e.g.
Scenario:
Given a blog post named "Random"
with title, Some Title, Eh?
and body:
> Here is the first paragraph of my blog post.
> Lorem ipsum dolor sit amet, consectetur adipiscing
> elit.
library.given('a blog post named "$name"',function(name){blog=newBlog(name);}).given('title, $title',function(title){blog.title=title;}).given('body:',function()){// Do nothing}).define('> $line',function(line){blog.appendBody(line);}
I agree the multiline syntax is better. I've tagged it as an enhancement.
is it possible to write this with yadda ?:
src :
Ami44
The text was updated successfully, but these errors were encountered: