Skip to content
Snippets Groups Projects
Commit 20a8c016 authored by Alex Reisner's avatar Alex Reisner
Browse files

Exempt ip2location from attribute tests.

parent 780089e5
No related branches found
No related tags found
No related merge requests found
...@@ -5,6 +5,7 @@ class ResultTest < GeocoderTestCase ...@@ -5,6 +5,7 @@ class ResultTest < GeocoderTestCase
def test_forward_geocoding_result_has_required_attributes def test_forward_geocoding_result_has_required_attributes
Geocoder::Lookup.all_services_except_test.each do |l| Geocoder::Lookup.all_services_except_test.each do |l|
next if l == :ip2location # has pay-per-attribute pricing model
Geocoder.configure(:lookup => l) Geocoder.configure(:lookup => l)
set_api_key!(l) set_api_key!(l)
result = Geocoder.search("Madison Square Garden").first result = Geocoder.search("Madison Square Garden").first
...@@ -14,6 +15,7 @@ class ResultTest < GeocoderTestCase ...@@ -14,6 +15,7 @@ class ResultTest < GeocoderTestCase
def test_reverse_geocoding_result_has_required_attributes def test_reverse_geocoding_result_has_required_attributes
Geocoder::Lookup.all_services_except_test.each do |l| Geocoder::Lookup.all_services_except_test.each do |l|
next if l == :ip2location # has pay-per-attribute pricing model
Geocoder.configure(:lookup => l) Geocoder.configure(:lookup => l)
set_api_key!(l) set_api_key!(l)
result = Geocoder.search([45.423733, -75.676333]).first result = Geocoder.search([45.423733, -75.676333]).first
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment