Permalink
Browse files

Allow multiple invocations in the same WS test #1720

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2013 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 639d03b commit 056838d2fc959ab71f598dee8b8b0691608f8a72 @leonbreedt leonbreedt committed Aug 14, 2005
Showing with 3 additions and 0 deletions.
  1. +2 −0 actionwebservice/CHANGELOG
  2. +1 −0 actionwebservice/lib/action_web_service/test_invoke.rb
@@ -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.
@@ -29,6 +29,7 @@ def invoke_layered(service_name, method_name, *args)
# ---------------------- 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'

0 comments on commit 056838d

Please sign in to comment.