From d153525c53ef6158e2f6b6ba15f10b43d2b8d21a Mon Sep 17 00:00:00 2001 From: Michael Koziarski Date: Tue, 16 May 2006 20:56:41 +0000 Subject: Fix NoMethodError when parsing params like &&. [Adam Greenfield]. Closes #4955 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4343 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/cgi_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/cgi_test.rb b/actionpack/test/controller/cgi_test.rb index ddf68fdf5b..06f721997d 100755 --- a/actionpack/test/controller/cgi_test.rb +++ b/actionpack/test/controller/cgi_test.rb @@ -227,6 +227,12 @@ class CGITest < Test::Unit::TestCase expected = { "a/b@" => { "c" => { "d[e" => ["f"] }}} assert_equal expected, CGIMethods.parse_request_parameters(input) end + + def test_parse_params_with_nil_key + input = { nil => nil, "test2" => %w(value1) } + expected = { "test2" => "value1" } + assert_equal expected, CGIMethods.parse_request_parameters(input) + end end class MultipartCGITest < Test::Unit::TestCase -- cgit v1.2.3