summaryrefslogtreecommitdiff
path: root/spec/hashie/extensions
diff options
context:
space:
mode:
authorAmy Sutedja <asutedja@biaprotect.com>2014-09-04 16:31:48 -0700
committerAmy Sutedja <asutedja@biaprotect.com>2014-09-05 14:06:11 -0700
commitcebfebb8012520c4ab89d4c368983c28bdfcbe9b (patch)
tree1de0dd7e4d3d092a852477166f1ae727f617b61c /spec/hashie/extensions
parentcdf6c832c067112ef95fbe0dd0c5b65cf9101eae (diff)
downloadhashie-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.rb2
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