From: Tom Hughes Date: Mon, 9 Jul 2018 19:15:42 +0000 (+0100) Subject: Fix stubbing of hostip requests X-Git-Tag: live~2924 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/d66b4b3d2f379ed61ef2b33bb2b0507267827f98?hp=492a580d9cbe087293a8b3aa05e0541900bd39f2 Fix stubbing of hostip requests --- diff --git a/test/test_helper.rb b/test/test_helper.rb index f68c8e666..688cbc113 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -137,8 +137,8 @@ module ActiveSupport def stub_hostip_requests # Controller tests and integration tests use different IPs - stub_request(:get, "http://api.hostip.info/country.php?ip=0.0.0.0") - stub_request(:get, "http://api.hostip.info/country.php?ip=127.0.0.1") + stub_request(:get, "https://api.hostip.info/country.php?ip=0.0.0.0") + stub_request(:get, "https://api.hostip.info/country.php?ip=127.0.0.1") end def email_text_parts(message)