gitlab-org--gitlab-foss/spec/support/factory_default.rb

11 lines
239 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
config.after do |ex|
TestProf::FactoryDefault.reset unless ex.metadata[:factory_default] == :keep
end
config.after(:all) do
TestProf::FactoryDefault.reset
end
end