From 385aafa01c273d492a7fd185ba1c2c8333db2037 Mon Sep 17 00:00:00 2001
From: Robert Schaefer <robert.schaefer@student.hpi.de>
Date: Sun, 4 Feb 2018 12:18:43 +0100
Subject: [PATCH] Remove ipdata test case for api keys

see: https://github.com/alexreisner/geocoder/pull/1254#issuecomment-359118927
---
 test/unit/lookups/ipdata_co_test.rb | 19 -------------------
 1 file changed, 19 deletions(-)

diff --git a/test/unit/lookups/ipdata_co_test.rb b/test/unit/lookups/ipdata_co_test.rb
index 88a4d16c..5acdcf72 100644
--- a/test/unit/lookups/ipdata_co_test.rb
+++ b/test/unit/lookups/ipdata_co_test.rb
@@ -32,23 +32,4 @@ class IpdataCoTest < GeocoderTestCase
         lookup.send(:check_response_for_errors!, response)
     end
   end
-
-  def test_api_key
-    Geocoder.configure(:api_key => 'XXXX')
-
-    # HACK: run the code once to add the api key to the HTTP request headers
-    Geocoder.search('8.8.8.8')
-    # It's really hard to 'un-monkey-patch' the base lookup class here
-
-    require 'webmock/test_unit'
-    WebMock.enable!
-    stubbed_request = WebMock.stub_request(:get, "https://api.ipdata.co/8.8.8.8").with(headers: {'api-key' => 'XXXX'}).to_return(status: 200)
-
-    g = Geocoder::Lookup::IpdataCo.new
-    g.send(:actual_make_api_request, Geocoder::Query.new('8.8.8.8'))
-    assert_requested(stubbed_request)
-
-    WebMock.reset!
-    WebMock.disable!
-  end
 end
-- 
GitLab