test/test_fcc_geocoder.rb in geokit-1.8.4 vs test/test_fcc_geocoder.rb in geokit-1.8.5
- old
+ new
@@ -10,10 +10,10 @@
assert_equal expected_url, TestHelper.get_last_url.gsub(/&oauth_[a-z_]+=[a-zA-Z0-9\-. %]+/, '').gsub('%20', '+')
end
def test_fcc_reverse_geocode
VCR.use_cassette('fcc_reverse_geocode') do
- url = "http://data.fcc.gov/api/block/find?format=json&latitude=34.05&longitude=-118.25"
+ url = "https://data.fcc.gov/api/block/find?format=json&latitude=34.05&longitude=-118.25"
res = Geokit::Geocoders::FCCGeocoder.reverse_geocode(@la)
assert_url url
assert_equal res.country_code, 'US'
assert_equal res.state, 'CA'
assert_equal res.district, 'Los Angeles'