From d521c84138be39a75cc6c0c3395efdcf6345ea43 Mon Sep 17 00:00:00 2001
From: robdiciuccio <rob@definitionstudio.com>
Date: Thu, 11 Jul 2013 17:45:30 -0700
Subject: [PATCH] Update unit tests for new MapQuest API key configuration
 settings

---
 test/services_test.rb | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/services_test.rb b/test/services_test.rb
index 022b4233..c6ba1f91 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
-- 
GitLab