2012-11-16 53 views
1

當我運行測試RSpec的,我得到錯誤rspec的提示錯誤助力車::錯誤:: ConnectionFailure

1) Nimba::Storages DropboxStorages returns http success 
Failure/Error: Unable to find matching line from backtrace 
Moped::Errors::ConnectionFailure: 
    Could not connect to a primary node for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">]> 

我不無爲什麼這個occure這個錯誤?

謝謝..

回答

0

問題通過將行符合規格/ spec_helper.rb

DatabaseCleaner.orm = "mongoid" 
解決