Here is how you'd write a test for the ActiveSupport::TestCase route:

https://gist.github.com/daviddavis/4e4a0cb389b4685ae19a