2013-09-10 52 views
0

所以,這裏的代碼,當我跑步時,我得到了bundle exec rspec spec/.解決:哈特爾第7章問題:沒有的DRb服務器運行

我幾乎複製粘貼一切哈特爾告訴我這樣做,但我可以」這甚至不會得到一個紅色的測試。在我的gem文件中,我添加了factory_girls_rails v. 4.2.1寶石,但我注意到那裏已經有一個默認的factory_girls gem 4.2.0。這是衝突嗎?


No DRb server is running. Running in local process instead ... 
/home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common/zipper.rb:1:in `require': cannot load such file -- zip/zip (LoadError) 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common/zipper.rb:1:in `<top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common.rb:9:in `require' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver/common.rb:9:in `<top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver.rb:29:in `require' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium/webdriver.rb:29:in `<top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium-webdriver.rb:1:in `require' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/selenium-webdriver-2.0.0/lib/selenium-webdriver.rb:1:in `<top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require' 
    from /home/nemo/.rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler.rb:132:in `require' 
    from /home/nemo/rails_projects/sample_app/config/application.rb:12:in `<top (required)>' 
    from /home/nemo/rails_projects/sample_app/config/environment.rb:2:in `require' 
    from /home/nemo/rails_projects/sample_app/config/environment.rb:2:in `<top (required)>' 
    from /home/nemo/rails_projects/sample_app/spec/spec_helper.rb:6:in `require' 
    from /home/nemo/rails_projects/sample_app/spec/spec_helper.rb:6:in `block in <top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/spork-1.0.0rc3/lib/spork.rb:24:in `prefork' 
    from /home/nemo/rails_projects/sample_app/spec/spec_helper.rb:4:in `<top (required)>' 
    from /home/nemo/rails_projects/sample_app/spec/models/user_spec.rb:1:in `require' 
    from /home/nemo/rails_projects/sample_app/spec/models/user_spec.rb:1:in `<top (required)>' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `block in load_spec_files' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `each' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/configuration.rb:819:in `load_spec_files' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/command_line.rb:22:in `run' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:77:in `rescue in run' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:73:in `run' 
    from /home/nemo/.rvm/gems/[email protected]_rails_4_0/gems/rspec-core-2.13.1/lib/rspec/core/runner.rb:17:in `block in autorun' 

回答

0

No DRb server is running. Running in local process instead這個消息出現,因爲叉勺服務器沒有運行,檢查this thread其對你有當您嘗試運行rspec spec,也由Ryan貝茨約叉勺檢查this screencast

+1

所以,之後的錯誤經過幾天的努力以及搜索查詢的組合,我終於找到了解決方案,這是需要更新selenium-webdriver的解決方案。以下是我發現的答案:「我需要更新gem'selenium-webdriver','2.0.0'將gem'selenium-webdriver','〜> 2.35.1'並且問題全部消失。」我確信有人會在某個時候遇到這個問題。 –