test/test_geoplugin_geocoder.rb in geokit-1.5.0 vs test/test_geoplugin_geocoder.rb in geokit-1.6.0

- old
+ new

@@ -31,11 +31,11 @@ success.expects(:body).returns(IP_SUCCESS) url = 'http://www.geoplugin.net/xml.gp?ip=200.150.38.66' GeoKit::Geocoders::GeoPluginGeocoder.expects(:call_geocoder_service).with(url).returns(success) location = GeoKit::Geocoders::GeoPluginGeocoder.geocode('200.150.38.66') assert_not_nil location - assert_equal -19.916700, location.lat - assert_equal -43.933300, location.lng + assert_equal(-19.916700, location.lat) + assert_equal(-43.933300, location.lng) assert_equal "Belo Horizonte", location.city assert_equal "Minas Gerais", location.state assert_equal "BR", location.country_code assert_equal "geoPlugin", location.provider assert location.success?