[rspec-users] Okay, I'm finally asking for help
dchelimsky at gmail.com
Mon Jan 14 21:32:53 EST 2008
On Jan 14, 2008 8:31 PM, 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')
> (the @vars are all set up)
> Here's the method:
> def save_coupon
> @coupon = Coupon.new(params[:coupon])
> redirect_to :action => :index
> Now, I've tried it through the browser, and it works. Any thoughts?
What's the failure message?
> I appreciate it.
> The Internet's Premiere source of information about Corey Haines
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users