aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/support/referential.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb
index c0ae35779..d00a9ba7f 100644
--- a/spec/support/referential.rb
+++ b/spec/support/referential.rb
@@ -72,14 +72,20 @@ RSpec.configure do |config|
)
end
- config.before(:each) do
+ config.before(:each, truncation: false) do
DatabaseCleaner.strategy = :transaction
# Switch into the default tenant
first_referential.switch
end
config.before(:each, truncation: true) do
- DatabaseCleaner.strategy = :truncation, { except: %w[spatial_ref_sys] }
+ DatabaseCleaner.strategy = :truncation, {
+ except: %w[
+ spatial_ref_sys
+ referentials
+ line_referentials
+ ]
+ }
end
config.before(:each) do