From 31927a87fe26e4d011fe414226f7e34dba310924 Mon Sep 17 00:00:00 2001
From: Ryan Boland <bolandryanm@gmail.com>
Date: Mon, 5 Sep 2016 11:36:21 -0400
Subject: [PATCH] update geocodio test result

---
 lib/geocoder/results/geocodio.rb             | 2 +-
 test/fixtures/geocodio_1101_pennsylvania_ave | 2 +-
 test/unit/lookups/geocodio_test.rb           | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/geocoder/results/geocodio.rb b/lib/geocoder/results/geocodio.rb
index dbe5605f..f15ed0fb 100644
--- a/lib/geocoder/results/geocodio.rb
+++ b/lib/geocoder/results/geocodio.rb
@@ -40,7 +40,7 @@ module Geocoder::Result
     end
 
     def country_code
-      address_components['country'] || "US"
+      address_components['country']
     end
 
     def city
diff --git a/test/fixtures/geocodio_1101_pennsylvania_ave b/test/fixtures/geocodio_1101_pennsylvania_ave
index c907deee..4b6a0627 100644
--- a/test/fixtures/geocodio_1101_pennsylvania_ave
+++ b/test/fixtures/geocodio_1101_pennsylvania_ave
@@ -1 +1 @@
-{"input":{"address_components":{"number":"1101","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania Ave NW","city":"Washington","state":"DC"},"formatted_address":"1101 Pennsylvania Ave NW, Washington, DC"},"results":[{"address_components":{"number":"1101","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania Ave NW","city":"Washington","county":"District of Columbia","state":"DC","zip":"20004"},"formatted_address":"1101 Pennsylvania Ave NW, Washington, DC 20004","location":{"lat":38.895019,"lng":-77.028095},"accuracy":1,"accuracy_type":"range_interpolation"},{"address_components":{"number":"1101","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania Ave NW","city":"Washington","county":"District of Columbia","state":"DC","zip":"20004"},"formatted_address":"1101 Pennsylvania Ave NW, Washington, DC 20004","location":{"lat":38.895016122449,"lng":-77.028084377551},"accuracy":0.8,"accuracy_type":"range_interpolation"}]}
\ No newline at end of file
+{"input":{"address_components":{"number":"1101","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania Ave NW","city":"Washington","state":"DC","zip":"20001","country":"US"},"formatted_address":"1101 Pennsylvania Ave NW, Washington, DC 20001"},"results":[{"address_components":{"number":"1101","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania Ave NW","city":"Washington","county":"District of Columbia","state":"DC","zip":"20004","country":"US"},"formatted_address":"1101 Pennsylvania Ave NW, Washington, DC 20004","location":{"lat":38.895156,"lng":-77.027405},"accuracy":1,"accuracy_type":"rooftop","source":"DC Geographic Information Systems Program (DC GIS)"}]}
diff --git a/test/unit/lookups/geocodio_test.rb b/test/unit/lookups/geocodio_test.rb
index 250ce410..20db0f9f 100644
--- a/test/unit/lookups/geocodio_test.rb
+++ b/test/unit/lookups/geocodio_test.rb
@@ -21,7 +21,7 @@ class GeocodioTest < GeocoderTestCase
     assert_equal "US", result.country_code
     assert_equal "United States", result.country
     assert_equal "1101 Pennsylvania Ave NW, Washington, DC 20004", result.formatted_address
-    assert_equal({ "lat" => 38.895019, "lng" => -77.028095 }, result.location)
+    assert_equal({ "lat" => 38.895156, "lng" => -77.027405 }, result.location)
   end
 
   def test_reverse_canada_result
-- 
GitLab