Re: [rspec-users] Setting Request Body (in stories in particular)

2009-02-24 Thread Matt Wynne
On 19 Feb 2009, at 03:36, Michael Sofaer wrote: I'm trying to set my request body in my tests (the application is a web service that takes large XML files in PUT requests). If you do this: put :update, :body => xml You get a request with an empty body, and a field in the header called "body"

[rspec-users] Setting Request Body (in stories in particular)

2009-02-23 Thread Michael Sofaer
I'm trying to set my request body in my tests (the application is a web service that takes large XML files in PUT requests). If you do this: put :update, :body => xml You get a request with an empty body, and a field in the header called "body" set to the XML. You can set the body date in contr