【发布时间】:2014-10-22 21:55:13
【问题描述】:
我按照this guy 推荐的设置方式设置了我的 env.rb。我在本地启动了我的应用程序,当我运行时 firefox=true bundle exec cucumber features/01_login.feature 我得到以下
无法加载此类文件 -- capybara/poltergeist (LoadError) /Users/gabrielpumple/bi/features/support/env.rb:3:in
require' /Users/gabrielpumple/bi/features/support/env.rb:3:in' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/rb_support/rb_language.rb:122:inload' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/rb_support/rb_language.rb:122:inload_code_file' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:180:inload_file' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:83:inblock in load_files!' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:82:ineach' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:82:inload_files! /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime.rb:184:inload_step_definitions' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/runtime.rb:42:inrun! /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/lib/cucumber/cli/main.rb:47:inexecute!' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/gems/cucumber-1.3.10/bin/cucumber:13:in' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/bin/cucumber:23:inload' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/bin/cucumber:23:in' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:ineval' /Users/gabrielpumple/.rvm/gems/ruby-1.9.3-p547/bin/ruby_executable_hooks:15:in'
我已经安装了 poltergeist/phantomjs 并运行 bundle install。我的同事和我的测试在 chrome 中正常工作,但我们需要在不同的浏览器上运行它们。任何帮助是极大的赞赏。
【问题讨论】:
标签: ruby-on-rails macos selenium-webdriver cucumber capybara