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:
parent
2e3f5191f0
commit
afdf279e2f
1 changed files with 1 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue