Do not attempt to clean up a view

See https://github.com/DatabaseCleaner/database_cleaner/issues/504
This commit is contained in:
Petko Bordjukov 2019-04-28 22:14:34 +03:00
parent a8d7cde7a1
commit 752c3123d6
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ RSpec.configure do |config|
MSG
end
DatabaseCleaner.clean_with(:truncation)
DatabaseCleaner.clean_with(:truncation, except: %w[participants])
end
config.before(:each) do
@ -32,7 +32,7 @@ RSpec.configure do |config|
# under test that does *not* share a database connection with the
# specs, so use truncation strategy.
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.strategy = :truncation, {except: %w[participants]}
end
end