1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

refactor order hash test

This commit is contained in:
Vipul A M 2013-04-11 21:31:23 +05:30
parent 2e3f5191f0
commit afdf279e2f

View file

@ -244,11 +244,7 @@ class OrderedHashTest < ActiveSupport::TestCase
end end
def test_each_after_yaml_serialization def test_each_after_yaml_serialization
values = [] assert_equal @values, YAML.load(YAML.dump(@ordered_hash)).values
@deserialized_ordered_hash = YAML.load(YAML.dump(@ordered_hash))
@deserialized_ordered_hash.each {|key, value| values << value}
assert_equal @values, values
end end
def test_each_when_yielding_to_block_with_splat def test_each_when_yielding_to_block_with_splat