aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/cgi_test.rb
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2007-01-28 17:00:17 +0000
committerNicholas Seckar <nseckar@gmail.com>2007-01-28 17:00:17 +0000
commit17a9405b584d7bd2ceb05f9310112a1d8a00b6ae (patch)
treebd29ce3fe4d8fe83713f21a5a6b26f0b7315f863 /actionpack/test/controller/cgi_test.rb
parentd6d94c7377b60aac92f3718cafc4b3e6c3852fe3 (diff)
downloadrails-17a9405b584d7bd2ceb05f9310112a1d8a00b6ae.tar.gz
rails-17a9405b584d7bd2ceb05f9310112a1d8a00b6ae.tar.bz2
rails-17a9405b584d7bd2ceb05f9310112a1d8a00b6ae.zip
Change the query parser to map empty GET params to "" rather than nil. Closes #5694.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/cgi_test.rb')
-rwxr-xr-xactionpack/test/controller/cgi_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/cgi_test.rb b/actionpack/test/controller/cgi_test.rb
index e7d44802a5..d5c8ee0063 100755
--- a/actionpack/test/controller/cgi_test.rb
+++ b/actionpack/test/controller/cgi_test.rb
@@ -8,7 +8,7 @@ require 'stringio'
class CGITest < Test::Unit::TestCase
def setup
@query_string = "action=create_customer&full_name=David%20Heinemeier%20Hansson&customerId=1"
- @query_string_with_nil = "action=create_customer&full_name="
+ @query_string_with_empty = "action=create_customer&full_name="
@query_string_with_array = "action=create_customer&selected[]=1&selected[]=2&selected[]=3"
@query_string_with_amps = "action=create_customer&name=Don%27t+%26+Does"
@query_string_with_multiple_of_same_name =
@@ -68,8 +68,8 @@ class CGITest < Test::Unit::TestCase
def test_query_string_with_nil
assert_equal(
- { "action" => "create_customer", "full_name" => nil},
- CGIMethods.parse_query_parameters(@query_string_with_nil)
+ { "action" => "create_customer", "full_name" => ''},
+ CGIMethods.parse_query_parameters(@query_string_with_empty)
)
end