diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-03-03 10:53:37 -0800 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-03-03 10:53:37 -0800 |
commit | 833181f5983bf77cfe359af6fcb9ede5fb8151f8 (patch) | |
tree | bd8255ebc5ef11c195532d660de74975e18426f8 /activesupport | |
parent | 2aec357b7e8e310be107b479224524f12f83d5a5 (diff) | |
parent | d8996d3cab5657358656b572f3096a0a14bf0ccb (diff) | |
download | rails-833181f5983bf77cfe359af6fcb9ede5fb8151f8.tar.gz rails-833181f5983bf77cfe359af6fcb9ede5fb8151f8.tar.bz2 rails-833181f5983bf77cfe359af6fcb9ede5fb8151f8.zip |
Merge pull request #5260 from castlerock/remove_ordered_hash_usages
remove usage of AS::OrderedHash from other places
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 2 | ||||
-rw-r--r-- | activesupport/test/core_ext/object/to_query_test.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index a0f261ebdb..38cdda6c5c 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -550,7 +550,7 @@ class HashExtToParamTests < ActiveSupport::TestCase end def test_to_param_orders_by_key_in_ascending_order - assert_equal 'a=2&b=1&c=0', ActiveSupport::OrderedHash[*%w(b 1 c 0 a 2)].to_param + assert_equal 'a=2&b=1&c=0', Hash[*%w(b 1 c 0 a 2)].to_param end end diff --git a/activesupport/test/core_ext/object/to_query_test.rb b/activesupport/test/core_ext/object/to_query_test.rb index 6a26e1fa4f..c34647c1df 100644 --- a/activesupport/test/core_ext/object/to_query_test.rb +++ b/activesupport/test/core_ext/object/to_query_test.rb @@ -28,12 +28,12 @@ class ToQueryTest < ActiveSupport::TestCase def test_nested_conversion assert_query_equal 'person%5Blogin%5D=seckar&person%5Bname%5D=Nicholas', - :person => ActiveSupport::OrderedHash[:login, 'seckar', :name, 'Nicholas'] + :person => Hash[:login, 'seckar', :name, 'Nicholas'] end def test_multiple_nested assert_query_equal 'account%5Bperson%5D%5Bid%5D=20&person%5Bid%5D=10', - ActiveSupport::OrderedHash[:account, {:person => {:id => 20}}, :person, {:id => 10}] + Hash[:account, {:person => {:id => 20}}, :person, {:id => 10}] end def test_array_values |