diff options
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/request_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index bae4d6ffe4..a12b929477 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -711,6 +711,12 @@ class UrlEncodedRequestParameterParsingTest < Test::Unit::TestCase expected = {"a" => [{"b" => {"c" => "d"}}]} assert_equal expected, ActionController::AbstractRequest.parse_request_parameters(input) end + + def test_parse_params_with_complex_nesting + input = { "a[][b][c][][d][]" => %w(e) } + expected = {"a" => [{"b" => {"c" => [{"d" => ["e"]}]}}]} + assert_equal expected, ActionController::AbstractRequest.parse_request_parameters(input) + end end |