Sha256: d52c9a2cc2397e8c9d79b5c74c3a1deb1aae9232ae72eab7d3e205c0457a9100

Contents?: true

Size: 474 Bytes

Versions: 6

Compression:

Stored size: 474 Bytes

Contents

module ConfigurationHelper
  def reset_config_between_tests!
    after do
      Routemaster::Client.send(:remove_const, :Configuration)
      load 'routemaster/client/configuration.rb'
    end
  end

  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
end

RSpec.configure { |c| c.extend ConfigurationHelper }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
routemaster-client-3.2.3 spec/support/configuration_helper.rb
routemaster-client-3.2.0 spec/support/configuration_helper.rb
routemaster-client-3.1.2 spec/support/configuration_helper.rb
routemaster-client-3.1.1 spec/support/configuration_helper.rb
routemaster-client-3.1.0 spec/support/configuration_helper.rb
routemaster-client-3.0.0 spec/support/configuration_helper.rb