Add a routing test for /id

This commit is contained in:
Tom Hughes 2013-05-07 14:52:08 +01:00
parent 6659fb9b33
commit 6e2c9ce258

View file

@ -58,6 +58,10 @@ class SiteControllerTest < ActionController::TestCase
{ :path => "/preview/formatname", :method => :get },
{ :controller => "site", :action => "preview", :format => "formatname" }
)
assert_routing(
{ :path => "/id", :method => :get },
{ :controller => "site", :action => "id" }
)
end
## Lets check that we can get all the pages without any errors