Add a tests for the fixthemap page

This commit is contained in:
Tom Hughes 2014-01-19 13:52:17 +00:00
parent a24f52dec7
commit affe17a31a

View file

@ -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