Discussion Forums
- Topic List
- Most Recent Posts
- Sign In for more options
Does anyone know how you can specify the body of an HttpMock post as well as the body of the response?
I'm trying to test a restful API where the parameters are posted in in the body of the post as XML and the response is XML in the response body.
As far as I can tell, you can only specify one body in a mock object?
mock.http_method(path, request_headers = {}, body = nil, status = 200, response_headers = {})
Thanks, Tom
