0
失敗的問題與黃瓜on Rails的3黃瓜,耙中止,命令狀態1
這是類似於Ruby on Rails. Bundler. Cucumber. rake aborted! Command failed with status (1)但也有一些差異。 運行rake cucumber:wip
後,我得到這個:
bundle exec /home/megas/.rvm/rubies/ruby-1.9.2-p136/bin/ruby -I "/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib:lib" "/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/bin/cucumber" --profile wip
Using the wip profile...
no such file to load -- nokogiri (LoadError)
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `block in require'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:227:in `load_dependency'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-rails-0.3.2/lib/cucumber/web/tableish.rb:1:in `<top (required)>'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `block in require'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:227:in `load_dependency'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/activesupport-3.0.3/lib/active_support/dependencies.rb:239:in `require'
/home/megas/Work/strawberries/features/support/env.rb:13:in `<top (required)>'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime/support_code.rb:176:in `load_file'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime/support_code.rb:78:in `block in load_files!'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime/support_code.rb:77:in `each'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime/support_code.rb:77:in `load_files!'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime.rb:137:in `load_step_definitions'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/runtime.rb:39:in `run!'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/cli/main.rb:43:in `execute!'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/lib/cucumber/cli/main.rb:20:in `execute'
/home/megas/.rvm/gems/ruby-1.9.2-p136/gems/cucumber-0.10.0/bin/cucumber:14:in `<main>'
rake aborted!
Command failed with status (1): [bundle exec /home/megas/.rvm/rubies/ruby-1...]
我的Gemfile
gem 'nifty-generators'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'cucumber'
gem 'rspec-rails'
gem 'spork'
gem 'launchy'
gem 'machinist', '>= 2.0.0.beta1'
gem 'faker'
的區別是:用RVM 1.2.0,它不會在所有的工作,錯誤信息的差異開始於「沒有這樣的文件加載 - 引入nokogiri(LoadError)」
感謝