ruby-1.9.2 和 mongoid-2.0.0 的黄瓜测试
我真的很难过。我正在使用黄瓜测试来访问链接。我正在使用 pickle web 步骤,但
When I go to the post comment's new page
它似乎不起作用。我还尝试了我在帖子评论的新页面
,但这也不起作用。错误是堆栈级别太深
。然而,当我编写自己的自定义步骤时,测试就通过了。每一页都写步骤太累了。还有其他人遇到类似的问题吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
替换
features/step_definitions/paths.rb
中以下自动生成的 pickle 路径助手来摆脱它:我看到了完全相同的错误,但通过用我自己的
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
with my own:
我只是将: 替换
为:
I simply replaced:
With: