Module: Configatron::Integrations

Defined in:
lib/configatron/integrations/minitest.rb,
lib/configatron/integrations.rb,
lib/configatron/integrations/rails.rb

Overview

Include in a minitest to restore the global configatron object to its global state afterwards. Particularly useful if you'd like to test your application with various config settings.

“`ruby class Test::Suite < Minitest::Unit

include Configatron::Integrations::Minitest

it 'works' do
  configatron.unlock! do
    configatron.some.setting = true
  end

  [...]
end

“`

Defined Under Namespace

Modules: Minitest, Rails