aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-05-11 11:43:30 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-05-11 11:43:30 -0700
commitd45d0a18647e906223b2859d1ce2a83be00095b1 (patch)
treefb7c8afe4cf0c368da13893dfef338e46d988a66 /activesupport/test
parent4817bf94d135c44ddfae1a30acb15de989e3c86c (diff)
parent4932f7b38f72104819022abca0c952ba6f9888cb (diff)
downloadrails-d45d0a18647e906223b2859d1ce2a83be00095b1.tar.gz
rails-d45d0a18647e906223b2859d1ce2a83be00095b1.tar.bz2
rails-d45d0a18647e906223b2859d1ce2a83be00095b1.zip
Merge branch 'master' of git@github.com:rails/rails
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/ordered_hash_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/ordered_hash_test.rb b/activesupport/test/ordered_hash_test.rb
index 7cd8c8a8f4..6fccbbdc41 100644
--- a/activesupport/test/ordered_hash_test.rb
+++ b/activesupport/test/ordered_hash_test.rb
@@ -51,6 +51,10 @@ class OrderedHashTest < Test::Unit::TestCase
assert_same @ordered_hash, @ordered_hash.to_hash
end
+ def test_to_a
+ assert_equal @keys.zip(@values), @ordered_hash.to_a
+ end
+
def test_has_key
assert_equal true, @ordered_hash.has_key?('blue')
assert_equal true, @ordered_hash.key?('blue')