module ConfigurationHelper

Public Instance Methods

reset_config_between_tests!() click to toggle source
# File spec/support/configuration_helper.rb, line 2
def reset_config_between_tests!
  after do
    Routemaster::Client.send(:remove_const, :Configuration)
    load 'routemaster/client/configuration.rb'
  end
end
reset_sidekiq_config_between_tests!() click to toggle source
# File spec/support/configuration_helper.rb, line 9
def reset_sidekiq_config_between_tests!
  after do
    Routemaster::Client::Backends::Sidekiq.send(:remove_const, :Configuration)
    load 'routemaster/client/backends/sidekiq/configuration.rb'
  end
end