Fix bug in test database preparation

Presumably the intent of this was to clear the database and repopulate
it with seed data. `transaction` isn't the right strategy for this; it
just rolls back any existing transactions.
This commit is contained in:
Andrew Kvalheim 2020-04-05 11:16:15 -07:00 committed by Henne Vogelsang
parent 2c8521a2e5
commit 310fc8dc68
No known key found for this signature in database
GPG key ID: 9D6164C2955FADE0

View file

@ -2,7 +2,7 @@
RSpec.configure do |config|
config.before(:suite) do
DatabaseCleaner.clean_with(:transaction)
DatabaseCleaner.clean_with(:truncation)
Rails.application.load_seed
end