Browse files

Merge pull request #10179 from vipulnsward/refactor_order_hash_test

refactor order hash test; remove unused method param
  • Loading branch information...
2 parents b15ce4a + afdf279 commit 3c5517237fb046db3872d77f764e2168f31a5848 @spastorino spastorino committed Apr 11, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 activesupport/test/ordered_hash_test.rb
View
6 activesupport/test/ordered_hash_test.rb
@@ -244,11 +244,7 @@ def test_nested_under_indifferent_access
end
def test_each_after_yaml_serialization
- values = []
- @deserialized_ordered_hash = YAML.load(YAML.dump(@ordered_hash))
-
- @deserialized_ordered_hash.each {|key, value| values << value}
- assert_equal @values, values
+ assert_equal @values, YAML.load(YAML.dump(@ordered_hash)).values
end
def test_each_when_yielding_to_block_with_splat

0 comments on commit 3c55172

Please sign in to comment.