zach.dennis at gmail.com
Wed Oct 8 17:47:01 EDT 2008
Look at the below, I think it entails what you want:
describe YourController do
it "redirects to the home page" do
On Wed, Oct 8, 2008 at 5:41 PM, Anita Anita <lists at ruby-forum.com> wrote:
> Can I test in the spec the route taken by the redirect_to from the
> controller? The URL is not controller/action.
> I tried:
> route_for(:controller => "signup", :action => "confirmation").should ==
> "/my/set/URL" but no it absolutely wants: ...should ==
> So how can I test my real URL?
> Thank you,
> Posted via http://www.ruby-forum.com/.
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users