Commit c3a5d918 authored by Dmitriy Zaporozhets (DZ)'s avatar Dmitriy Zaporozhets (DZ)

Merge branch 'fix-delete-cleanup' into 'master'

Restore use_transactional_tests value after delete

See merge request gitlab-org/gitlab!68507
parents 1fca0eac 555d3226
...@@ -52,6 +52,8 @@ RSpec.configure do |config| ...@@ -52,6 +52,8 @@ RSpec.configure do |config|
example.run example.run
delete_from_all_tables!(except: deletion_except_tables) delete_from_all_tables!(except: deletion_except_tables)
self.class.use_transactional_tests = true
end end
config.around(:each, :migration) do |example| config.around(:each, :migration) do |example|
...@@ -60,5 +62,7 @@ RSpec.configure do |config| ...@@ -60,5 +62,7 @@ RSpec.configure do |config|
example.run example.run
delete_from_all_tables! delete_from_all_tables!
self.class.use_transactional_tests = true
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment