Reputation: 5152
I am having a really hard time. I am using cucumber tests for visiting a link. I am using the pickle web steps for
When I go to the post comment's new page
It does not seem to be working. I also tried I am on the post comment's new page
but that is also not working. The error is stack level too deep
. However when I write the custom step of my own the test is passing. It is too tiresome to write the steps for every page. Is anyone else getting a similar problem?
Upvotes: 0
Views: 267
Reputation: 21
I simply replaced:
path_to_pickle $1, :extra => $2
With:
path_to_pickle $1, :action => $2
Upvotes: 2
Reputation: 343
I've seen the exact same error but managed to get rid of it by replacing the following auto-generated pickle path helper in features/step_definitions/paths.rb
when /^#{capture_model}(?:'s)? (.+?) page$/
path_to_pickle $1, :extra => $2
with my own:
when /^#{capture_model}(?:'s)? (.+?) page$/
polymorphic_path(model($1), :action => $2)
Upvotes: 2