0
Rails TEST環境をSQLite3からPostgreSQLに切り替えることを試みています。しかしPostgreSQLのRails 3でのテスト
、私はこのエラーが発生した
rake spec:requests
を実行すると:
[email protected]:~/apps/gctest$ rake spec:requests
rake aborted!
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.[]
Tasks: TOP => db:test:load => db:test:purge
(See full trace by running task with --trace)
私が開発にDBにアクセスすることができています(テストのための私のdatabase.ymlのファイルは、開発に似ていますが、 _testで)。
私が気付いていない問題がありますか? 「タスク:...」行はどういう意味ですか?
マイENV:
rspec (2.6.0)
rails (3.0.9)
ruby 1.9.2p290
pg (0.11.0)
psql (PostgreSQL) 8.4.8
あなたはそれを釘付け、私はちょうど私がこの投稿を削除するために戻って来た投稿後すぐに気づいた..私は "開発:"を2回コピーしていた! ...ありがとう! – hagope