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