安装RVM似乎已经停止了在酱油实验室运行的黄瓜测试

时间:2013-12-04 12:18:58

标签: ruby cucumber rvm capybara saucelabs

在我安装了RVM(我正在同时处理的另一个项目的要求)后,我再也无法对SauceLabs运行我的黄瓜测试。我有使用系统ruby(1.8.7 p374)的RVM,并且我所需的所有宝石都已正确安装。

我会在底部附上宝石列表

因此,当我运行以下命令时,在我的包含tests和saucelabs.rb文件的文件夹中./sauce_labs.rb很多,我收到以下错误:

Logging to Windows XP-iehta-8.html ...
Logging to Windows 7-iehta-9.html ...
Logging to Windows 7-iehta-10.html ...
Logging to Windows 8.1-iehta-11.html ...
Logging to Windows 7-firefox-latest.html ...
Logging to Mac 10.8-safari-6.html ...
Logging to Windows 7-googlechrome-latest.html ...
no such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvmno such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
no such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
no such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cno such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvmucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
no such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15
no such file to load -- rake (LoadError)
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/rake/server_task.rb:2
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/selenium-webdriver-2.31.0/lib/selenium/client.rb:21
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/selenium.rb:1
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-2.3.2/lib/sauce/capybara.rb:4
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4:in `require'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/sauce-cucumber-2.3.1/lib/sauce/cucumber.rb:4
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33:in `require'
/Users/donovan.greef/Sites/announcements/tests/features/support/env.rb:33
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/rb_support/rb_language.rb:137:in `load_code_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:180:in `load_file'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:83:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `each'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime/support_code.rb:82:in `load_files!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:182:in `load_step_definitions'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/runtime.rb:41:in `run!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:43:in `execute!'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/../lib/cucumber/cli/main.rb:20:in `execute'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/gems/cucumber-1.2.3/bin/cucumber:14
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23:in `load'
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/cucumber:23
/Users/donovan.greef/.rvm/gems/ruby-1.8.7-p374/bin/ruby_executable_hooks:15

我已尝试以下方法解决此问题:

  • 安装Rake gem(安装正常,但仍然有相同的错误)
  • 尝试安装rails(版本Latest,2.1.2和2.0.0,所有失败说有效支持需要ruby 1.9.3 - 目前不是一个选项)
  • 试图找出如何关闭耙负荷,但无济于事。

任何帮助都会受到赞赏,因为我现在对这些想法很感兴趣。

提前谢谢你。

宝石清单:

  • 建造者(3.2.0)
    • bundler(1.3.5)
    • capybara(1.1.4)
    • childprocess(0.3.9)
    • cmdparse(2.0.5)
    • 指挥官(4.1.3)
    • 黄瓜(1.2.3)
    • diff-lcs(1.2.1)
    • eventmachine(1.0.3)
    • faye-websocket(0.4.7)
    • ffi(1.5.0)
    • 小黄瓜(2.11.6)
    • highline(1.6.16)
    • http_parser.rb(0.5.3)
    • json(1.7.7)
    • mime-types(1.21)
    • multi_json(1.7.1)
    • net-http-persistent(2.8)
    • net-ssh(2.6.6)
    • net-ssh-gateway(1.2.0)
    • nokogiri(1.5.9)
    • parallel(0.6.2)
    • parallel_tests(0.10.1)
    • poltergeist(1.0.2)
    • rack(1.5.2)
    • rack-test(0.6.2)
    • rest-client(1.6.7)
    • rspec(2.13.0)
    • rspec-core(2.13.1)
    • rspec-expectations(2.13.0)
    • rspec-mocks(2.13.0)
    • ruby​​zip(0.9.9)
    • 酱(2.3.2)
    • 酱黄瓜(2.3.1)
    • selenium-webdriver(2.31.0)
    • websocket(1.0.7)
    • xpath(0.1.4)

1 个答案:

答案 0 :(得分:2)

您有Gemfile cucumber,这使得gem rubygems-bundler检测到它并自动加载Bundler.setup,这会将宝石限制为{{1}中定义的宝石不幸的是,Gemfile使用selenium-webdriver gem,但没有将它定义为依赖项(http://code.google.com/p/selenium/source/browse/rb/build.desc#25)。

有两种方法可以解决它:

  1. rake添加到rakeGemfile这应解决中级问题 - 同时报告bundle install缺少的依赖项=>的错误http://code.google.com/p/selenium/issues/list

  2. 禁用selenium-webdriver gem以使用无限制的gem列表

    rubygems-bundler

    (将加载最高版本而不是Gemfile和依赖项中指定的版本。)