做这些宝石的最新版本互相不工作了吗?看来,事情可能已经在我的包重击的得到了。

undefined local variable or method `node' for #<Capybara::Driver::RackTest::Node:0x103e19390> (NameError)
./features/step_definitions/web_steps.rb:35
./features/step_definitions/web_steps.rb:14:in `with_scope'
./features/step_definitions/web_steps.rb:34:in `/^(?:|I )follow "([^"]*)"(?: within "([^"]*)")?$/'
features/signing_in.feature:11:in `And I follow "Login"'

所有我试图做的是运行功能,以:

bundle exec cucumber features/signing_in.feature

我不能运行任何测试。

capybara-0.4.0
cucumber-rails-0.3.2
cucumber-0.9.2

我并重新运行黄瓜安装脚本。我还要补充一点,我不知道什么是试图调用水豚的“节点”内部::驱动器:: RackTest。

有帮助吗?

解决方案

“......问题......黄瓜猴子补丁水豚方法不再存在......注释掉‘黄瓜/水豚的JavaScript仿真’...的错误就会消失”

$特征/支持/ env.rb

编码快乐!!

http://github.com/jnicklas /豚/问题/问题/ 87 /#问题/ 87 /评论/ 433959

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top