diff --git a/lib/dry/configurable/config.rb b/lib/dry/configurable/config.rb index cec9e374..31dab3cd 100644 --- a/lib/dry/configurable/config.rb +++ b/lib/dry/configurable/config.rb @@ -79,7 +79,6 @@ def values .to_h end alias_method :to_h, :values - alias_method :to_hash, :values # @api private def finalize! diff --git a/spec/integration/dry/configurable/config_spec.rb b/spec/integration/dry/configurable/config_spec.rb index c0e75247..a238ae8f 100644 --- a/spec/integration/dry/configurable/config_spec.rb +++ b/spec/integration/dry/configurable/config_spec.rb @@ -46,12 +46,6 @@ end end - it 'dumps itself into a hash' do - expect(Hash(klass.config)).to eql( - db: { user: 'root', pass: 'secret', ports: Set[123, 321] } - ) - end - it 'is used for equality' do expect(klass.config).to eql(klass.config.dup) end