Displaying 1 result from an estimated 1 matches for "stu1vwx".
2011 Mar 17
0
Testing route with proc --- possible and how?
...url, but the traffic first hits the directed route and then app controller
handles if the user is not logged in.
In spec/routing/routing_spec.rb (note that all necessary test data for it to
pass is set up and verified):
describe "Shorter URL redirect" do
it "routes GET ''STU1VWX'' to stations/1" do
{ :get => "/", :hash => "STU1VWX" }.should route_to(
:controller => "stations",
:action => "show",
:params => {:id => 1} )
end
end
The problem is that I get this error:
Failure/...