- ##
- # Test the US postcode search
- def test_search_us_postcode
- with_http_stubs "geocoder_us" do
- get :search_us_postcode, :xhr => true,
- :params => { :query => "90210", :zoom => 10,
- :minlon => -0.559, :minlat => 51.217,
- :maxlon => 0.836, :maxlat => 51.766 }
- results_check :prefix => "Beverly Hills, CA,", :name => "90210",
- :lat => 34.088808, :lon => -118.40612
-
- get :search_us_postcode, :xhr => true,
- :params => { :query => "00000", :zoom => 10,
- :minlon => -0.559, :minlat => 51.217,
- :maxlon => 0.836, :maxlat => 51.766 }
- results_check
- end
- end
-