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

Check req'd attrs for both forward and reverse.

parent 0269d33a
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,16 @@ require 'test_helper'
class ResultTest < GeocoderTestCase
def test_result_has_required_attributes
def test_forward_geocoding_result_has_required_attributes
Geocoder::Lookup.all_services_except_test.each do |l|
Geocoder.configure(:lookup => l)
set_api_key!(l)
result = Geocoder.search("Madison Square Garden").first
assert_result_has_required_attributes(result)
end
end
def test_reverse_geocoding_result_has_required_attributes
Geocoder::Lookup.all_services_except_test.each do |l|
Geocoder.configure(:lookup => l)
set_api_key!(l)
......
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