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
parent 3aa32aebe8
commit 11a7e056bf

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