diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-05-16 20:56:41 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-05-16 20:56:41 +0000 |
commit | d153525c53ef6158e2f6b6ba15f10b43d2b8d21a (patch) | |
tree | 8de56ffbd88595a3012690995cd783758c12ab6b /actionpack/test/controller | |
parent | be3a4849a909545de444ef6d4f5751eea8a3ba1f (diff) | |
download | rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.tar.gz rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.tar.bz2 rails-d153525c53ef6158e2f6b6ba15f10b43d2b8d21a.zip |
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
Diffstat (limited to 'actionpack/test/controller')
-rwxr-xr-x | actionpack/test/controller/cgi_test.rb | 6 |
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 |