X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/21855aa355ed66bea0ae21acb3d675aeaccc963b..67dd9e4c9d487bdb5f38a09dc0c99def4989326e:/test/functional/site_controller_test.rb 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