Dear Russian friends, please watch President Zelenskyy's speech addressed to you. πŸ‡ΊπŸ‡¦Help our brave mates in Ukraine with a donation.

dry-configurable 0.16

Testing

How to reset the config to its original state on testing environment

update spec_helper.rb :

require "dry/configurable/test_interface"

# this is your module/class that extended by Dry::Configurable
module AwesomeModule
  enable_test_interface
end

and on spec file (xxx_spec.rb) :

before(:all) { AwesomeModule.reset_config }
# or 
before(:each) { AwesomeModule.reset_config }

octocatEdit on GitHub