From 06f325f478fa1f9b8198a1e8ee56362b78a39121 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Thu, 24 May 2007 23:37:37 +0000 Subject: Add multipart request parsing test with bracketed parameter key. References #8449. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6831 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/request_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb index 4a43091823..1e6f6db8d8 100644 --- a/actionpack/test/controller/request_test.rb +++ b/actionpack/test/controller/request_test.rb @@ -652,6 +652,10 @@ class MultipartRequestParameterParsingTest < Test::Unit::TestCase assert_equal({ 'foo' => 'bar' }, params) end + def test_bracketed_param + assert_equal({ 'foo' => { 'baz' => 'bar'}}, process('bracketed_param')) + end + def test_text_file params = process('text_file') assert_equal %w(file foo), params.keys.sort -- cgit v1.2.3