debian-mirror-gitlab/spec/support/cross_database_modification.rb
2022-04-04 11:22:00 +05:30

9 lines
280 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
config.after do |example|
[::ApplicationRecord, ::Ci::ApplicationRecord].each do |base_class|
base_class.gitlab_transactions_stack.clear if base_class.respond_to?(:gitlab_transactions_stack)
end
end
end