]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/site_controller_test.rb
Fix incorrect interpolation variables
[rails.git] / test / functional / site_controller_test.rb
index 3f9e2a145c74278f6dd6f0a52af349aa7a6826dd..55dff2d96563a5ad25b1c7733a549669f2f1f4fe 100644 (file)
@@ -47,13 +47,17 @@ class SiteControllerTest < ActionController::TestCase
       { :controller => "site", :action => "offline" }
     )
     assert_routing(
-      { :path => "/key", :method => :post },
+      { :path => "/key", :method => :get },
       { :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