diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2013-04-11 10:49:52 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2013-04-11 10:49:52 -0700 |
commit | 3c5517237fb046db3872d77f764e2168f31a5848 (patch) | |
tree | ce3c25f875d60df85ecf81ff030df80c4801cbff /activesupport | |
parent | b15ce4a006756a0b6cacfb9593d88c9a7dfd8eb0 (diff) | |
parent | afdf279e2fbbebf9955bb667a15e3a3d80951dd1 (diff) | |
download | rails-3c5517237fb046db3872d77f764e2168f31a5848.tar.gz rails-3c5517237fb046db3872d77f764e2168f31a5848.tar.bz2 rails-3c5517237fb046db3872d77f764e2168f31a5848.zip |
Merge pull request #10179 from vipulnsward/refactor_order_hash_test
refactor order hash test; remove unused method param
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/ordered_hash_test.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb index 6aea9d56f1..c3fe89de4b 100644 --- a/activesupport/test/ordered_hash_test.rb +++ b/activesupport/test/ordered_hash_test.rb @@ -244,11 +244,7 @@ class OrderedHashTest < ActiveSupport::TestCase 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 |