我得到以下错误的所有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