aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-04-11 21:31:23 +0530
committerVipul A M <vipulnsward@gmail.com>2013-04-11 21:55:45 +0530
commitafdf279e2fbbebf9955bb667a15e3a3d80951dd1 (patch)
treec0626bbb1398946e56d702e9deca6be044f43548 /activesupport/test
parent2e3f5191f05dbd072194bf47564a51bfa4cbf0d5 (diff)
downloadrails-afdf279e2fbbebf9955bb667a15e3a3d80951dd1.tar.gz
rails-afdf279e2fbbebf9955bb667a15e3a3d80951dd1.tar.bz2
rails-afdf279e2fbbebf9955bb667a15e3a3d80951dd1.zip
refactor order hash test
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/ordered_hash_test.rb6
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