On Fri, Jun 25, 2010 at 1:56 PM, Marcelo de Moraes Serpa
<celose...@gmail.com> wrote:
> Hello guys,
>
> Quick question: How could I just test if a redirect was made, without URL
> whatsoever?

In rspec-1/rails-2:

response.should be_redirect

This is not in rspec-rails-2 yet, so you can just go with the rails
assertion for now:

assert_response :redirect

HTH,
David
_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to