我得到以下錯誤的所有rspec測試,它們一直在正常工作...真的很奇怪的是我沒有' T改變任何關於mongod的或rspec的或mongoid ... :(我可以訪問蒙戈外殼就好了,太嘗試運行rspec測試時出現「Moped :: Errors :: ConnectionFailure:」錯誤
任何幫助或建議用於調試這將是非常讚賞
- 紅寶石。! 1.9.3p194
- Rails:3.2.12
- Mongod:2.2
- Mongoid:3.1.4
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=nil>]>
鏈接mongoid.yml:https://gist.github.com/yangtheman/5879742
你能顯示你的mongoid.yml嗎? – Rebitzele
@Rebitzele,當然。我只是用一個鏈接[mongoid.yml](https://gist.github.com/yangtheman/5879742)更新了這篇文章。謝謝你的幫助! – yangtheman