test
この構成が自分のデータベースと自分のデータベースの両方をクリーンアップしているように見えるのはなぜdevelopment
ですか? development
実行するたびに再シードする必要があるのはかなり面倒rspec
です。
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
データベース.yml
development:
adapter: postgresql
database: m_development
encoding: utf8
pool: 5
username: booltox
password:
test:
adapter: postgresql
database: m_test
encoding: utf8
pool: 5
username: booltox
password: