0

我真的很难过。我正在使用黄瓜测试来访问链接。我正在使用泡菜网络步骤

When I go to the post comment's new page

它似乎不起作用。我也尝试过I am on the post comment's new page,但这也行不通。错误是stack level too deep。但是,当我编写自己的自定义步骤时,测试通过了。为每一页写步骤太累了。还有其他人遇到类似的问题吗?

4

2 回答 2

2

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)
于 2011-04-06T13:59:41.223 回答
2

我只是替换:

path_to_pickle $1, :extra => $2

和:

path_to_pickle $1, :action => $2
于 2011-05-08T12:58:24.733 回答