I would love if someone could help me figure this out. I can’t seem to
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:
@coupon = Coupon.new(params[:coupon])
redirect_to :action => :index
Now, I’ve tried it through the browser, and it works. Any thoughts?
I appreciate it.