X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/21855aa355ed66bea0ae21acb3d675aeaccc963b..f9528a7464376adebd8773fffd546e96205cca5f:/test/functional/site_controller_test.rb?ds=sidebyside diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 3f9e2a145..86445e551 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -54,6 +54,10 @@ class SiteControllerTest < ActionController::TestCase { :path => "/go/shortcode", :method => :get }, { :controller => "site", :action => "permalink", :code => "shortcode" } ) + assert_routing( + { :path => "/preview/formatname", :method => :get }, + { :controller => "site", :action => "preview", :format => "formatname" } + ) end ## Lets check that we can get all the pages without any errors