From: Tom Hughes Date: Sun, 19 Jan 2014 13:52:17 +0000 (+0000) Subject: Add a tests for the fixthemap page X-Git-Tag: live~4505 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/affe17a31a7afab6b62a0124d40386b0210ac9e2?hp=a24f52dec75007d05c5a4e2986dd82c4602af4ad;ds=sidebyside Add a tests for the fixthemap page --- diff --git a/test/functional/site_controller_test.rb b/test/functional/site_controller_test.rb index 711f94bcd..f2dab3404 100644 --- a/test/functional/site_controller_test.rb +++ b/test/functional/site_controller_test.rb @@ -48,6 +48,10 @@ class SiteControllerTest < ActionController::TestCase { :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" } @@ -253,6 +257,13 @@ class SiteControllerTest < ActionController::TestCase 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