diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 18:10:29 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-19 18:10:29 +0300 |
commit | 155f106fd5b5214c387e9b9143e9fa5725daed54 (patch) | |
tree | 84e2d649306889ef78e66ca2cdfbf3df85197b63 /spec/support | |
parent | 110225407ff1476b102ae905ba2e9a01e5ab34a2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/database_cleaner.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/database_cleaner.rb b/spec/support/database_cleaner.rb index 6a0e398daa1..01bf390d9e9 100644 --- a/spec/support/database_cleaner.rb +++ b/spec/support/database_cleaner.rb @@ -52,6 +52,8 @@ RSpec.configure do |config| example.run delete_from_all_tables!(except: deletion_except_tables) + + self.class.use_transactional_tests = true end config.around(:each, :migration) do |example| @@ -60,5 +62,7 @@ RSpec.configure do |config| example.run delete_from_all_tables! + + self.class.use_transactional_tests = true end end |