Skip to content
Snippets Groups Projects
Unverified Commit 6e79b62c authored by Mihail-K's avatar Mihail-K
Browse files

Update unittests to match behaviour.

parent 03070898
No related branches found
No related tags found
No related merge requests found
......@@ -42,7 +42,7 @@ class IpdataCoTest < GeocoderTestCase
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)
stubbed_request = WebMock.stub_request(:get, "https://api.ipdata.co/8.8.8.8?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'))
......
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