diff options
author | José Valim <jose.valim@gmail.com> | 2010-06-26 12:14:25 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-06-26 12:14:25 +0200 |
commit | 3782010377a7774c27011ff57e0e783b0f85a928 (patch) | |
tree | 855b87eb3d5bc62c3deeed2e5595afe939fd02f0 /activesupport | |
parent | aa48ab05f40788bd9f54124f91b0ad86869a7b06 (diff) | |
download | rails-3782010377a7774c27011ff57e0e783b0f85a928.tar.gz rails-3782010377a7774c27011ff57e0e783b0f85a928.tar.bz2 rails-3782010377a7774c27011ff57e0e783b0f85a928.zip |
Oops. Make previous commit pass on 1.9.2.
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 |