Re: [rspec-users] Speccing a redirect in routes

2011-08-09 Thread Chris Mear
On 9 Aug 2011, at 01:02, David Chelimsky wrote: > On Aug 8, 2011, at 6:00 PM, Matt Wynne wrote: > >> I expected to be able to do something like this in a routing spec: >> >> { :get => '/legacy/route' }.should redirect_to('/shiny/new/route') > > Routes resolve to paths to controller actions, the

Re: [rspec-users] Speccing a redirect in routes

2011-08-09 Thread David Chelimsky
On Aug 9, 2011, at 2:00 AM, Chris Mear wrote: > On 9 Aug 2011, at 01:02, David Chelimsky wrote: > >> On Aug 8, 2011, at 6:00 PM, Matt Wynne wrote: >> >>> I expected to be able to do something like this in a routing spec: >>> >>> { :get => '/legacy/route' }.should redirect_to('/shiny/new/route')