diff options
Diffstat (limited to 'actionpack/test/controller/cgi_test.rb')
-rwxr-xr-x | actionpack/test/controller/cgi_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/cgi_test.rb b/actionpack/test/controller/cgi_test.rb index dbdf6a5b96..f0058d2bf8 100755 --- a/actionpack/test/controller/cgi_test.rb +++ b/actionpack/test/controller/cgi_test.rb @@ -94,12 +94,16 @@ class CGITest < Test::Unit::TestCase input = { "something" => [ StringIO.new("") ], + "array_of_stringios" => [[ StringIO.new("One"), StringIO.new("Two") ]], + "mixed_types_array" => [[ StringIO.new("Three"), "NotStringIO" ]], "products[string]" => [ StringIO.new("Apple Computer") ], "products[file]" => [ mock_file ] } expected_output = { "something" => "", + "array_of_stringios" => ["One", "Two"], + "mixed_types_array" => [ "Three", "NotStringIO" ], "products" => { "string" => "Apple Computer", "file" => mock_file @@ -169,3 +173,4 @@ class CGITest < Test::Unit::TestCase assert_equal expected, CGIMethods.parse_request_parameters(input) end end + |