我正在使用Ruby 1.9.2,Rails 3.1,Rspec,Postgres和Spork,但是我无法让它们在一起很好地玩。使用Spork运行规格时出现“PGError:没有连接到服务器”
第一次运行规格(Spork在后台运行)工作正常。但是,当我第二次运行规格时,它失败:
Failure/Error: Unable to find matching line from backtrace
PGError:
no connection to the server
# /Users/tom/.rvm/gems/[email protected]/gems/activerecord-3.1.0.rc4/lib/active_record/connection_adapters/postgresql_adapter.rb:272:in `exec'
etc....
任何提示赞赏!
这解决了我的问题!太感谢了。 –
这也给我修好了,谢谢 – tomblomfield
工作过,但我也必须做FactoryGirl mod(下面)。 – Karl