这些 gem 的最新版本不再相互兼容了吗?看来我的包裹里有些东西出了问题。
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
我确实重新运行了黄瓜的安装脚本。我还要补充一点,我不知道在 Capybara::Drive::RackTest 中试图调用“节点”的是什么。