Sha256: 3e4bbe2531394b948789cb59d146eb04bcdf2ead1f75b9a6d97316a7712513fe
Contents?: true
Size: 480 Bytes
Versions: 1
Compression:
Stored size: 480 Bytes
Contents
--- title: Testing layout: gem-single name: dry-configurable --- ### How to reset the config to its original state on testing environment update `spec_helper.rb` : ```ruby 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`) : ```ruby before(:all) { AwesomeModule.reset_config } # or before(:each) { AwesomeModule.reset_config } ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-configurable-0.9.0 | docsite/source/testing.html.md |