From 752c3123d6001236ebc17691be73b288e60a6a18 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sun, 28 Apr 2019 22:14:34 +0300 Subject: [PATCH] Do not attempt to clean up a view See https://github.com/DatabaseCleaner/database_cleaner/issues/504 --- spec/support/database_cleaner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index da6571b..7cf6bdc 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -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