From 20a8c016cab24bee06b8ba2ffe7ca5c034da0a2e Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Fri, 27 Jul 2018 13:13:14 -0400 Subject: [PATCH] Exempt ip2location from attribute tests. --- test/unit/result_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/result_test.rb b/test/unit/result_test.rb index c87f7fd2..eeb579ee 100644 --- a/test/unit/result_test.rb +++ b/test/unit/result_test.rb @@ -5,6 +5,7 @@ class ResultTest < GeocoderTestCase def test_forward_geocoding_result_has_required_attributes Geocoder::Lookup.all_services_except_test.each do |l| + next if l == :ip2location # has pay-per-attribute pricing model Geocoder.configure(:lookup => l) set_api_key!(l) result = Geocoder.search("Madison Square Garden").first @@ -14,6 +15,7 @@ class ResultTest < GeocoderTestCase def test_reverse_geocoding_result_has_required_attributes Geocoder::Lookup.all_services_except_test.each do |l| + next if l == :ip2location # has pay-per-attribute pricing model Geocoder.configure(:lookup => l) set_api_key!(l) result = Geocoder.search([45.423733, -75.676333]).first -- GitLab