Permalink
Browse files

refactor order hash test

  • Loading branch information...
1 parent 2e3f519 commit afdf279e2fbbebf9955bb667a15e3a3d80951dd1 @vipulnsward vipulnsward committed Apr 11, 2013
Showing with 1 addition and 5 deletions.
  1. +1 −5 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 afdf279

Please sign in to comment.