summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-09-01 11:30:17 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-09-01 11:30:17 +0000
commit4d8ee30423d6fa8357c7799fa930501fa1509028 (patch)
tree25f5166098ec7efdc121b8eb45f28f4aca867139
parentfb58d337f0b8b6f685c1e94a9327d8d12ebfbf81 (diff)
downloadgitlab-ce-4d8ee30423d6fa8357c7799fa930501fa1509028.tar.gz
Add latest changes from gitlab-org/gitlab@14-2-stable-ee
-rw-r--r--spec/support/database_cleaner.rb4
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