[rspec-users] Setting Request headers with webrat

Juanma Cervera lists at ruby-forum.com
Thu Oct 2 07:27:30 EDT 2008


Well, Matt was right.
I have not got the solution for my problems.
The problem is that I can't set the headers with click_button or visits.
If anyone knows how to set the request headers with these methods of 
webrat,  this would be very helpful.

Thank yus

Matt Wynne wrote:
> Cool.
> 
> Be aware that you're by-passing webrat by using the post method -
> that's one of the 'raw' rails calls that webrat wraps up in its
> elegant set of methods.
> 
> It may be that you can pass this same hash to clicks_button but I
> don't know - you'd have to check the webrat source.

-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list