]> git.openstreetmap.org Git - rails.git/commitdiff
Add a tests for the fixthemap page
authorTom Hughes <tom@compton.nu>
Sun, 19 Jan 2014 13:52:17 +0000 (13:52 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 19 Jan 2014 13:52:17 +0000 (13:52 +0000)
test/functional/site_controller_test.rb

index 711f94bcd3c763383cee32c402db60e267f35539..f2dab3404424b0dbddf9e21d5aba6bf26044ebc6 100644 (file)
@@ -48,6 +48,10 @@ class SiteControllerTest < ActionController::TestCase
       { :path => "/welcome", :method => :get },
       { :controller => "site", :action => "welcome" }
     )
       { :path => "/welcome", :method => :get },
       { :controller => "site", :action => "welcome" }
     )
+    assert_routing(
+      { :path => "/fixthemap", :method => :get },
+      { :controller => "site", :action => "fixthemap" }
+    )
     assert_routing(
       { :path => "/export", :method => :get },
       { :controller => "site", :action => "export" }
     assert_routing(
       { :path => "/export", :method => :get },
       { :controller => "site", :action => "export" }
@@ -253,6 +257,13 @@ class SiteControllerTest < ActionController::TestCase
     assert_template "welcome"
   end
 
     assert_template "welcome"
   end
 
+  # Test the fixthemap page
+  def test_fixthemap
+    get :fixthemap
+    assert_response :success
+    assert_template "fixthemap"
+  end
+
   # Test the help page
   def test_help
     get :help
   # Test the help page
   def test_help
     get :help