[rspec-users] Using the response object in stories
Matt Wynne
matt at mattwynne.net
Tue Sep 30 13:28:45 EDT 2008
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.
On 30 Sep 2008, at 17:21, Juanma Cervera wrote:
> Thanks Matt.
> I have check the rails api and see that I can pass a hash with the
> headers as a parameter with the post command.
>
> post "/session",
> {:username => 'matt', :password => 'secret'},
> {:HTTP_USER_AGENT => "MSIE"}
>
> and this works for me, by now, I don't know if I will have some more
> troubles with webrat.
>
> Thanks.
>
>
>
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
More information about the rspec-users
mailing list