Add some missing route tests for the site controller

This commit is contained in:
Tom Hughes 2019-12-30 22:37:24 +00:00
parent 3426976606
commit bb2c5677df

View file

@ -54,6 +54,18 @@ class SiteControllerTest < ActionController::TestCase
{ :path => "/fixthemap", :method => :get },
{ :controller => "site", :action => "fixthemap" }
)
assert_routing(
{ :path => "/help", :method => :get },
{ :controller => "site", :action => "help" }
)
assert_routing(
{ :path => "/about", :method => :get },
{ :controller => "site", :action => "about" }
)
assert_routing(
{ :path => "/about/locale", :method => :get },
{ :controller => "site", :action => "about", :about_locale => "locale" }
)
assert_routing(
{ :path => "/export", :method => :get },
{ :controller => "site", :action => "export" }