Permalink
Browse files

Convert the Ruby 1.9 enumerator to an array

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
jeremy committed Sep 27, 2007
1 parent 42bc9b3 commit 888603686737a6f692ca841a32b570056651c0e3
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/ordered_options_test.rb
@@ -4,7 +4,7 @@ class OrderedHashTest < Test::Unit::TestCase
def setup
@keys = %w( blue green red pink orange )
@values = %w( 000099 009900 aa0000 cc0066 cc6633 )
- @ordered_hash = ActiveSupport::OrderedHash.new(@keys.zip(@values))
+ @ordered_hash = ActiveSupport::OrderedHash.new(@keys.zip(@values).to_a)
end
def test_order

0 comments on commit 8886036

Please sign in to comment.