[rspec-users] redirect_to
Andy Croll
lists at ruby-forum.com
Fri Apr 18 06:05:55 EDT 2008
Jarkko Laine wrote:
> I would perhaps use
>
>> it "should redirect to the previous page" do
>> response.should redirect_to "/prev/page"
>> end
Yeah, I'd pulled it back to see what *really* simple mistake I was
making. :-) I reintroduced it in my next 'write test -> fail -> write
code -> pass' cycle.
Thanks to you both!
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list