Skip to content
Snippets Groups Projects
Commit 393e7694 authored by Tamas Erdos's avatar Tamas Erdos
Browse files

resetting token in teardown

parent db82c030
No related branches found
No related tags found
No related merge requests found
......@@ -22,7 +22,6 @@ class EsriTest < GeocoderTestCase
query = Geocoder::Query.new("Bluffton, SC")
lookup = Geocoder::Lookup.get(:esri)
res = lookup.query_url(query)
Geocoder.configure(esri: {token: nil, for_storage: nil})
assert_equal "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?f=pjson&forStorage=true&outFields=%2A&text=Bluffton%2C+SC&token=xxxxx",
res
end
......@@ -102,4 +101,8 @@ class EsriTest < GeocoderTestCase
assert_equal [40.744050000000001, -74.000241000000003, 40.756050000000002, -73.988241000000002],
result.viewport
end
def teardown
Geocoder.configure(esri: {token: nil, for_storage: nil})
end
end
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