aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/referential.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/referential.rb')
-rw-r--r--spec/support/referential.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/referential.rb b/spec/support/referential.rb
index 7704d8510..0cfc3601e 100644
--- a/spec/support/referential.rb
+++ b/spec/support/referential.rb
@@ -47,6 +47,10 @@ RSpec.configure do |config|
config.before(:each, :js => true) do
DatabaseCleaner.strategy = :truncation
+ # Start transaction for this test
+ DatabaseCleaner.start
+ # Switch into the default tenant
+ first_referential.switch
end
config.after(:each) do