]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/site_controller_test.rb
Select which key entries to show on the client
[rails.git] / test / functional / site_controller_test.rb
index 753e1c859b0536b56d905547819804858b0c9ac7..55dff2d96563a5ad25b1c7733a549669f2f1f4fe 100644 (file)
@@ -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 }
@@ -50,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