diff options
author | Amy Sutedja <asutedja@biaprotect.com> | 2014-09-04 16:31:48 -0700 |
---|---|---|
committer | Amy Sutedja <asutedja@biaprotect.com> | 2014-09-05 14:06:11 -0700 |
commit | cebfebb8012520c4ab89d4c368983c28bdfcbe9b (patch) | |
tree | 1de0dd7e4d3d092a852477166f1ae727f617b61c /spec/hashie/extensions | |
parent | cdf6c832c067112ef95fbe0dd0c5b65cf9101eae (diff) | |
download | hashie-cebfebb8012520c4ab89d4c368983c28bdfcbe9b.tar.gz |
Merging Hashie::Mash now correctly only calls the block on duplicate values
Diffstat (limited to 'spec/hashie/extensions')
-rw-r--r-- | spec/hashie/extensions/coercion_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/hashie/extensions/coercion_spec.rb b/spec/hashie/extensions/coercion_spec.rb index 17261ed..682bfcd 100644 --- a/spec/hashie/extensions/coercion_spec.rb +++ b/spec/hashie/extensions/coercion_spec.rb @@ -160,7 +160,7 @@ describe Hashie::Extensions::Coercion do instance[:foo] = %w('bar', 'bar2') expect(instance[:foo].map(&:value)).to all(eq 'String') - expect(instance[:foo]).to be_none { |v| v.coerced? } + expect(instance[:foo]).to be_none(&:coerced?) expect(instance[:foo]).to be_a(Set) end |