Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 18:10:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-19 18:10:29 +0300
commit155f106fd5b5214c387e9b9143e9fa5725daed54 (patch)
tree84e2d649306889ef78e66ca2cdfbf3df85197b63 /spec/support/database_cleaner.rb
parent110225407ff1476b102ae905ba2e9a01e5ab34a2 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/database_cleaner.rb')
-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