I am finally getting the hang of cucumber, thanks in part to pickle,
so thanks for that first of all!
Now, I am using the following scenario:
Given I am logged in
And a blog exists
When I go to the new blog post page
And I fill in "subject" with "Test123"
And I press "Submit"
Then I should see "Test123"
But I get this:
new_blog_post_url failed to generate from
{:controller=>"posts", :action=>"new"} - you may have ambiguous
routes, or you may need to supply additional parameters for this
route. content_url has the following required parameters:
["blogs", :blog_id, "posts", "new"] - are they all satisfied?
(ActionController::RoutingError)
In my Rails app I just pass the blog to the named route method, but
how would I solve this in pickle?
Thanks!
Christoph
Take a look at features/support/paths.rb
That's where you page -> path mappings go. PIckle provides some to
get you going, but you can always add your own if they are don;t make
sense for your app.
In your case, I think that 'When I go to the blog's new post page'
will work out of the box
Cheers,
Ian
> --
>
> You received this message because you are subscribed to the Google
> Groups "pickle" group.
> To post to this group, send email to pickle-...@googlegroups.com.
> To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com
> .
> For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en
> .
>
>