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

12 lines
288 B
Ruby
Raw Normal View History

# 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