From affe17a31a7afab6b62a0124d40386b0210ac9e2 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 19 Jan 2014 13:52:17 +0000 Subject: [PATCH 1/1] Add a tests for the fixthemap page --- test/functional/site_controller_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.43.2