This post originated from an RSS feed registered with Ruby Buzz
by rwdaigle.
Original Post: Unit Testing Routes
Feed Title: Ryan's Scraps
Feed URL: http://feeds.feedburner.com/RyansScraps
Feed Description: Ryan Daigle's various technically inclined rants along w/ the "What's new in Edge Rails" series.
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: