aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/request_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/request_test.rb')
-rw-r--r--actionpack/test/controller/request_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/actionpack/test/controller/request_test.rb b/actionpack/test/controller/request_test.rb
index 49c404244f..b45e7f8771 100644
--- a/actionpack/test/controller/request_test.rb
+++ b/actionpack/test/controller/request_test.rb
@@ -758,3 +758,13 @@ class XmlParamsParsingTest < Test::Unit::TestCase
ActionController::CgiRequest.new(cgi).request_parameters
end
end
+
+class LegacyXmlParamsParsingTest < XmlParamsParsingTest
+ private
+ def parse_body(body)
+ env = { 'HTTP_X_POST_DATA_FORMAT' => 'xml',
+ 'CONTENT_LENGTH' => body.size.to_s }
+ cgi = ActionController::Integration::Session::MockCGI.new(env, body)
+ ActionController::CgiRequest.new(cgi).request_parameters
+ end
+end