diff --git a/test/services_test.rb b/test/services_test.rb index 022b42334940951666c89e037f4fa90f5f398fe1..c6ba1f91c61cdd42f6d6315418dbeef01662f398 100644 --- a/test/services_test.rb +++ b/test/services_test.rb @@ -276,6 +276,15 @@ class ServicesTest < Test::Unit::TestCase lookup = Geocoder::Lookup::Mapquest.new query = Geocoder::Query.new("Bluffton, SC") 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", res end