[rspec-users] Can't get should redirect_to match to work
David Chelimsky
dchelimsky at gmail.com
Fri Aug 10 23:51:52 EDT 2007
On 8/10/07, sbellware <sbellware at hotmail.com> wrote:
>
> Folks,
>
> I've posted to the simple example I'm working with as well as the spec code
> and results here:
> http://pastie.caboo.se/86750
>
> I can't seem to get this to work. Any ideas?
As of some time ago, response.should redirect_to should come after the
action. So:
it "get foo" do
get 'foo'
response.should redirect_to(:action => 'bar')
end
>
> Thanks,
> Scott
> --
> View this message in context: http://www.nabble.com/Can%27t-get-should-redirect_to-match-to-work-tf4251891.html#a12101072
> Sent from the rspec-users mailing list archive at Nabble.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