1 require File.dirname(__FILE__) + '/../test_helper'
2 require 'geocoder_controller'
4 class GeocoderControllerTest < ActionController::TestCase
6 # test all routes which lead to this controller
9 { :path => "/geocoder/search", :method => :get },
10 { :controller => "geocoder", :action => "search" }
13 { :path => "/geocoder/search_latlon", :method => :get },
14 { :controller => "geocoder", :action => "search_latlon" }
17 { :path => "/geocoder/search_us_postcode", :method => :get },
18 { :controller => "geocoder", :action => "search_us_postcode" }
21 { :path => "/geocoder/search_uk_postcode", :method => :get },
22 { :controller => "geocoder", :action => "search_uk_postcode" }
25 { :path => "/geocoder/search_ca_postcode", :method => :get },
26 { :controller => "geocoder", :action => "search_ca_postcode" }
29 { :path => "/geocoder/search_osm_namefinder", :method => :get },
30 { :controller => "geocoder", :action => "search_osm_namefinder" }
33 { :path => "/geocoder/search_osm_nominatim", :method => :get },
34 { :controller => "geocoder", :action => "search_osm_nominatim" }
37 { :path => "/geocoder/search_geonames", :method => :get },
38 { :controller => "geocoder", :action => "search_geonames" }
42 { :path => "/geocoder/description", :method => :get },
43 { :controller => "geocoder", :action => "description" }
46 { :path => "/geocoder/description_osm_namefinder", :method => :get },
47 { :controller => "geocoder", :action => "description_osm_namefinder" }
50 { :path => "/geocoder/description_osm_nominatim", :method => :get },
51 { :controller => "geocoder", :action => "description_osm_nominatim" }
54 { :path => "/geocoder/description_geonames", :method => :get },
55 { :controller => "geocoder", :action => "description_geonames" }