Skip to content
Snippets Groups Projects
Commit d521c841 authored by robdiciuccio's avatar robdiciuccio
Browse files

Update unit tests for new MapQuest API key configuration settings

parent e7ac9dbf
No related branches found
No related tags found
No related merge requests found
...@@ -276,6 +276,15 @@ class ServicesTest < Test::Unit::TestCase ...@@ -276,6 +276,15 @@ class ServicesTest < Test::Unit::TestCase
lookup = Geocoder::Lookup::Mapquest.new lookup = Geocoder::Lookup::Mapquest.new
query = Geocoder::Query.new("Bluffton, SC") query = Geocoder::Query.new("Bluffton, SC")
res = lookup.query_url(query) res = lookup.query_url(query)
assert_equal "http://open.mapquestapi.com/geocoding/v1/address?key=abc123&location=Bluffton%2C+SC",
res
end
def test_api_route_licensed
Geocoder.configure(:lookup => :mapquest, :api_key => "abc123", :mapquest => {:licensed => true})
lookup = Geocoder::Lookup::Mapquest.new
query = Geocoder::Query.new("Bluffton, SC")
res = lookup.query_url(query)
assert_equal "http://www.mapquestapi.com/geocoding/v1/address?key=abc123&location=Bluffton%2C+SC", assert_equal "http://www.mapquestapi.com/geocoding/v1/address?key=abc123&location=Bluffton%2C+SC",
res res
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