[rspec-users] uploads with webrat in stories
jonathan at parkerhill.com
Fri Aug 29 14:31:13 EDT 2008
On Aug 29, 2008, at 1:19 PM, Jonathan Linowes wrote:
> i am trying that too, but at this point in my story i dont actually
> have the current record object to generate the form action path.
> How would i extract the :action = path from the <form> in the
> current response.body ?
#assuming only one form on the page
path = response.body.match(/action=\"([^"]+)\"/)
still, i dont like bypassing webrat though
More information about the rspec-users