开发者

related objects in steps with cucumber/pickle

it would be great if somebody could help me with the cucumber/pickle syntax on creating related objects and assert them. How can I get references in my cucumber syntax...

Something Like

For e开发者_开发知识库xample: creating a blog post with a certain title with 3 comments And then assert this post and the related comments...

Is this with object builder by pickle possible or do I have to write these steps manually and how do I reference the value from master in detail?

I am looking especially for reffering Object in different steps and inserting master with its details in one batch with pickle (without defining the step manually) and then asserting it.... I should have 1 blogpost with 3 comments...


Check out the following screen-casts:

  1. http://railscasts.com/episodes/155-beginning-with-cucumber
  2. http://railscasts.com/episodes/159-more-on-cucumber
  3. http://railscasts.com/episodes/186-pickle-with-cucumber

These put me well on my way to cucumber and pickle goodness

Good luck!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜