diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-12-02 15:07:01 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-12-02 15:08:42 -0600 |
commit | 1ee9b40b18a0bed5bb10a0785f7e2730bac983f6 (patch) | |
tree | fd89754db0e85dd65227fd07225a265c34a5b273 /activesupport/test | |
parent | 49e943c4f0ac3459bd53023167aaa08fc8e46733 (diff) | |
download | rails-1ee9b40b18a0bed5bb10a0785f7e2730bac983f6.tar.gz rails-1ee9b40b18a0bed5bb10a0785f7e2730bac983f6.tar.bz2 rails-1ee9b40b18a0bed5bb10a0785f7e2730bac983f6.zip |
Failing tests for to_param/to_query not escaping "[]"
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/object/to_query_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/core_ext/object/to_query_test.rb b/activesupport/test/core_ext/object/to_query_test.rb index 0fb15be654..4d655913cc 100644 --- a/activesupport/test/core_ext/object/to_query_test.rb +++ b/activesupport/test/core_ext/object/to_query_test.rb @@ -17,22 +17,22 @@ class ToQueryTest < Test::Unit::TestCase end def test_nested_conversion - assert_query_equal 'person%5Blogin%5D=seckar&person%5Bname%5D=Nicholas', + assert_query_equal 'person[login]=seckar&person[name]=Nicholas', :person => {:name => 'Nicholas', :login => 'seckar'} end def test_multiple_nested - assert_query_equal 'account%5Bperson%5D%5Bid%5D=20&person%5Bid%5D=10', + assert_query_equal 'account[person][id]=20&person[id]=10', :person => {:id => 10}, :account => {:person => {:id => 20}} end def test_array_values - assert_query_equal 'person%5Bid%5D%5B%5D=10&person%5Bid%5D%5B%5D=20', + assert_query_equal 'person[id][]=10&person[id][]=20', :person => {:id => [10, 20]} end def test_array_values_are_not_sorted - assert_query_equal 'person%5Bid%5D%5B%5D=20&person%5Bid%5D%5B%5D=10', + assert_query_equal 'person[id][]=20&person[id][]=10', :person => {:id => [20, 10]} end |