diff options
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/ordered_hash_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb index 89855814d7..3d1bae163f 100644 --- a/activesupport/test/ordered_hash_test.rb +++ b/activesupport/test/ordered_hash_test.rb @@ -259,7 +259,8 @@ class OrderedHashTest < Test::Unit::TestCase end def test_invert - assert_kind_of ActiveSupport::OrderedHash, @ordered_hash.invert + expected = ActiveSupport::OrderedHash[@values.zip(@keys)] + assert_equal expected, @ordered_hash.invert assert_equal @values.zip(@keys), @ordered_hash.invert.to_a end end |