aboutsummaryrefslogtreecommitdiffstats
path: root/spec/support/referential.rb
diff options
context:
space:
mode:
authorLuc Donnet2015-02-09 16:01:02 +0100
committerLuc Donnet2015-02-09 16:01:02 +0100
commit138ac002693df4d8af5f5b1a7af12f4042fab297 (patch)
treed7096b54b2820eeb5f39e5ae368fcac033056a6e /spec/support/referential.rb
parent212451cd1f0df5f15595a2a65883a84a88682741 (diff)
downloadchouette-core-138ac002693df4d8af5f5b1a7af12f4042fab297.tar.bz2
Initialize first javascript rspec tests
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