]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/site_controller_test.rb
Require version 0.4.0.1 of the oauth-plugin gem
[rails.git] / test / functional / site_controller_test.rb
index 753e1c859b0536b56d905547819804858b0c9ac7..86445e551a4e0480e3feb0e5a8a41ed9d0949ba3 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 }
@@ -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