aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller')
-rwxr-xr-xactionpack/test/controller/cgi_test.rb6
1 files changed, 6 insertions, 0 deletions
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