aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/test/dispatcher_action_controller_soap_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionwebservice/test/dispatcher_action_controller_soap_test.rb')
-rw-r--r--actionwebservice/test/dispatcher_action_controller_soap_test.rb11
1 files changed, 1 insertions, 10 deletions
diff --git a/actionwebservice/test/dispatcher_action_controller_soap_test.rb b/actionwebservice/test/dispatcher_action_controller_soap_test.rb
index 400ab40dd6..76fc6094c2 100644
--- a/actionwebservice/test/dispatcher_action_controller_soap_test.rb
+++ b/actionwebservice/test/dispatcher_action_controller_soap_test.rb
@@ -28,6 +28,7 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase
@direct_controller = DirectController.new
@delegated_controller = DelegatedController.new
@virtual_controller = VirtualController.new
+ @protocol = ActionWebService::Protocol::Soap::SoapProtocol.new
end
def test_wsdl_generation
@@ -70,16 +71,6 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase
obj.detail.cause.is_a?(Exception)
end
- def create_ap_request(container, body, public_method_name, *args)
- test_request = ActionController::TestRequest.new
- test_request.request_parameters['action'] = service_name(container)
- test_request.env['REQUEST_METHOD'] = "POST"
- test_request.env['HTTP_CONTENT_TYPE'] = 'text/xml'
- test_request.env['HTTP_SOAPACTION'] = "/soap/#{service_name(container)}/#{public_method_name}"
- test_request.env['RAW_POST_DATA'] = body
- test_request
- end
-
def service_name(container)
container.is_a?(DelegatedController) ? 'test_service' : 'api'
end