diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/webservice_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb index 5cf92146a8..9874b2092b 100644 --- a/actionpack/test/controller/webservice_test.rb +++ b/actionpack/test/controller/webservice_test.rb @@ -92,6 +92,12 @@ class WebServiceTest < Test::Unit::TestCase assert_equal 'content...', @controller.params["summary"] assert_equal 'SimpleXml', @controller.params["title"] end + + def test_use_xml_ximple_with_empty_request + ActionController::Base.param_parsers[Mime::XML] = :xml_simple + assert_nothing_raised { process('POST', 'application/xml', "") } + assert_equal "", @controller.response.body + end def test_deprecated_request_methods process('POST', 'application/x-yaml') |