X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/90e46a58de583ac2bd7bb43077faa94186957a7a..c2447e5ba1efb157296f968783b9575291b1e48b:/test/functional/site_controller_test.rb diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 753e1c859..86445e551 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -10,6 +10,10 @@ class SiteControllerTest < ActionController::TestCase { :path => "/", :method => :get }, { :controller => "site", :action => "index" } ) + assert_routing( + { :path => "/", :method => :post }, + { :controller => "site", :action => "index" } + ) assert_recognizes( { :controller => "site", :action => "index" }, { :path => "/index.html", :method => :get } @@ -43,13 +47,17 @@ class SiteControllerTest < ActionController::TestCase { :controller => "site", :action => "offline" } ) assert_routing( - { :path => "/key", :method => :get }, + { :path => "/key", :method => :post }, { :controller => "site", :action => "key" } ) assert_routing( { :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