From b94bd32f3116b469b48400382dbc964bf17994d1 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Tue, 29 Mar 2005 12:31:39 +0000 Subject: first pass of web service scaffolding. add ability to quickly generate an action pack request for a protocol, add missing log_error when we fail to parse protocol messages. add RDoc for scaffolding and functional testing. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1037 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- .../test/dispatcher_action_controller_xmlrpc_test.rb | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb') diff --git a/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb b/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb index 81ada70c9e..c92f270a1b 100644 --- a/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb +++ b/actionwebservice/test/dispatcher_action_controller_xmlrpc_test.rb @@ -5,6 +5,7 @@ class TC_DispatcherActionControllerXmlRpc < Test::Unit::TestCase include DispatcherCommonTests def setup + @protocol = ActionWebService::Protocol::XmlRpc::XmlRpcProtocol.new @encoder = WS::Encoding::XmlRpcEncoding.new @marshaler = WS::Marshaling::XmlRpcMarshaler.new @direct_controller = DirectController.new @@ -29,15 +30,6 @@ class TC_DispatcherActionControllerXmlRpc < Test::Unit::TestCase obj.is_a?(XMLRPC::FaultException) 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['RAW_POST_DATA'] = body - test_request - end - def service_name(container) container.is_a?(DelegatedController) ? 'test_service' : 'api' end -- cgit v1.2.3