Ticket #11266: ordered_hash_to_hash.diff
| File ordered_hash_to_hash.diff, 1.0 kB (added by josh, 4 months ago) |
|---|
-
a/activesupport/lib/active_support/ordered_options.rb
old new 26 26 def values 27 27 collect { |key, value| value } 28 28 end 29 30 def to_hash 31 returning({}) do |hash| 32 each { |array| hash[array[0]] = array[1] } 33 end 34 end 29 35 end 30 36 end 31 37 end -
a/activesupport/test/core_ext/enumerable_test.rb
old new 22 22 end 23 23 24 24 assert_equal objects.uniq.map(&:name), grouped.keys 25 assert({}.merge(grouped), "Could not convert ActiveSupport::OrderedHash into Hash") 25 26 end 26 27 27 28 def test_sums