diff options
-rw-r--r-- | actionwebservice/CHANGELOG | 2 | ||||
-rw-r--r-- | actionwebservice/lib/action_web_service/test_invoke.rb | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/actionwebservice/CHANGELOG b/actionwebservice/CHANGELOG index e21a9e73ba..b03bfeb508 100644 --- a/actionwebservice/CHANGELOG +++ b/actionwebservice/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Allow multiple invocations in the same test method #1720 [dkhawk] + * Added ActionWebService::API::Base.soap_client and ActionWebService::API::Base.xmlrpc_client helper methods to create the internal clients for an API, useful for testing from ./script/console * ActionWebService now always returns UTF-8 responses. diff --git a/actionwebservice/lib/action_web_service/test_invoke.rb b/actionwebservice/lib/action_web_service/test_invoke.rb index cd9cb115ff..dd608e2d78 100644 --- a/actionwebservice/lib/action_web_service/test_invoke.rb +++ b/actionwebservice/lib/action_web_service/test_invoke.rb @@ -29,6 +29,7 @@ module Test # :nodoc: # ---------------------- internal --------------------------- def prepare_request(action, service_name, api_method_name, *args) + @request.recycle! @request.request_parameters['action'] = action @request.env['REQUEST_METHOD'] = 'POST' @request.env['HTTP_CONTENT_TYPE'] = 'text/xml' |