Sha256: 4c673140da5d82b480fa380004e7e84e0ebdbd59b1a8ae18e32933f377403d6b

Contents?: true

Size: 522 Bytes

Versions: 16

Compression:

Stored size: 522 Bytes

Contents

# frozen_string_literal: true

module Dry
  module Configurable
    # Methods meant to be used in a testing scenario
    module TestInterface
      # Resets configuration to default values
      #
      # @return [Dry::Configurable::Config]
      #
      # @api public
      def reset_config
        @config = config.pristine
      end
    end

    # Mixes in test interface into the configurable module
    #
    # @api public
    def enable_test_interface
      extend Dry::Configurable::TestInterface
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dry-configurable-1.0.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.16.1 lib/dry/configurable/test_interface.rb
dry-configurable-0.16.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.15.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.14.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.13.0 lib/dry/configurable/test_interface.rb
dry-configurable-0.12.1 lib/dry/configurable/test_interface.rb
dry-configurable-0.12.0 lib/dry/configurable/test_interface.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/dry-configurable-0.11.6/lib/dry/configurable/test_interface.rb
dry-configurable-0.11.6 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.5 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.4 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.3 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.2 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.1 lib/dry/configurable/test_interface.rb
dry-configurable-0.11.0 lib/dry/configurable/test_interface.rb