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 ==
“signup/confirmation”
So how can I test my real URL?
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 ==
“signup/confirmation”
So how can I test my real URL?
There may be a more straightforward way, but params_from may help: