[rspec-users] Using the response object in stories
Juanma Cervera
lists at ruby-forum.com
Tue Sep 30 12:21:53 EDT 2008
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/.
More information about the rspec-users
mailing list