mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user