+ ##
+ # test all routes which lead to this controller
+ def test_routes
+ assert_routing(
+ { :path => "/geocoder/search", :method => :post },
+ { :controller => "geocoder", :action => "search" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_latlon", :method => :get },
+ { :controller => "geocoder", :action => "search_latlon" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_us_postcode", :method => :get },
+ { :controller => "geocoder", :action => "search_us_postcode" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_uk_postcode", :method => :get },
+ { :controller => "geocoder", :action => "search_uk_postcode" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_ca_postcode", :method => :get },
+ { :controller => "geocoder", :action => "search_ca_postcode" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_osm_namefinder", :method => :get },
+ { :controller => "geocoder", :action => "search_osm_namefinder" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_osm_nominatim", :method => :get },
+ { :controller => "geocoder", :action => "search_osm_nominatim" }
+ )
+ assert_routing(
+ { :path => "/geocoder/search_geonames", :method => :get },
+ { :controller => "geocoder", :action => "search_geonames" }
+ )