提交 06f325f4 编写于 作者: J Jeremy Kemper

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
上级 74d1512b
......@@ -652,6 +652,10 @@ def test_single_parameter
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
......
--AaB03x
Content-Disposition: form-data; name="foo[baz]"
bar
--AaB03x--
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册