Skip to content

Commit

Permalink
Convert the Ruby 1.9 enumerator to an array
Browse files Browse the repository at this point in the history
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 8886036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/test/ordered_options_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8886036

Please sign in to comment.