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/. _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users