From 6e2c9ce25802db2e740c72ade9ecbe191a966b32 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 7 May 2013 14:52:08 +0100 Subject: [PATCH] Add a routing test for /id --- test/functional/site_controller_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 5fc3a0214..47bc27806 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -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 -- 2.43.2