debian-mirror-gitlab/spec/support/factory_default.rb
2020-11-24 15:15:51 +05:30

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