我正在使用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