From the “I didn’t know this existed but now that I’ve found it I will use it more often file” – did’cha know you can actually unit test your routes using the assert_routing assertion?
Assuming a vanilla people_controller and this routes.rb:
map.connect '/:id', :controller => 'people', :action => 'show', :nother => 'woohoo'
You can test routing in your people_controller_test functional test with:
assert_routing "/#{model.id}", :action => 'show', :id => model.id, :nother => 'woohoo'
Good to know…
