]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/site_controller_test.rb
Hook up user confirmation page
[rails.git] / test / functional / site_controller_test.rb
index 23e6c27a375383bd57069b0d155e4aea5729b671..4f41858e86b2d17ccc4ae6ca2bafd461a75ffb6d 100644 (file)
@@ -34,6 +34,10 @@ class SiteControllerTest < ActionController::TestCase
       { :path => "/copyright/locale", :method => :get },
       { :controller => "site", :action => "copyright", :copyright_locale => "locale" }
     )
+    assert_routing(
+      { :path => "/welcome", :method => :get },
+      { :controller => "site", :action => "welcome" }
+    )
     assert_routing(
       { :path => "/export", :method => :get },
       { :controller => "site", :action => "index", :export => true }
@@ -92,7 +96,7 @@ class SiteControllerTest < ActionController::TestCase
 
   def test_permalink
     get :permalink, :code => 'wBz3--'
-    assert_redirected_to :controller => :site, :action => 'index', :anchor => '3/4.8779296875/3.955078125'
+    assert_redirected_to :controller => :site, :action => 'index', :anchor => 'map=3/4.8779296875/3.955078125'
   end
 
   # Get the edit page