开发者

cucumber test for ruby-1.9.2 and mongoid-2.0.0

开发者 https://www.devze.com 2023-02-21 18:03 出处:网络
I am having a really hard time. I am using cucumber tests for visiting a link. I am using the pickle web steps for

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?


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)


I simply replaced:

path_to_pickle $1, :extra => $2

With:

path_to_pickle $1, :action => $2
0

精彩评论

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