summaryrefslogtreecommitdiff
path: root/spec/support/cross_database_modification.rb
blob: e0d91001c03dcf2e05e15e3d007fc5df9331e6c9 (plain)
1
2
3
4
5
6
7
8
9
# 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