[rspec-users] Okay, I'm finally asking for help
rick.denatale at gmail.com
Mon Jan 14 21:38:11 EST 2008
On 1/14/08, Corey Haines <coreyhaines at gmail.com> wrote:
> Hi, all!
> I would love if someone could help me figure this out. I can't seem to see
> why the following fails:
> Here's the spec:
> it "should redirect back to the index page" do
> response.should redirect_to(:action => 'index')
I think you need to check the response after the post, not before.
My blog on Ruby
More information about the rspec-users