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

11 lines
288 B
Ruby

# frozen_string_literal: true
RSpec.configure do |config|
config.around(:each, stub_settings_source: true) do |example|
original_instance = ::Settings.instance_variable_get(:@instance)
example.run
::Settings.instance_variable_set(:@instance, original_instance)
end
end