From: Tom Hughes Date: Tue, 10 Jul 2018 17:50:29 +0000 (+0100) Subject: Fix nominatim stubs X-Git-Tag: live~2969 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/90d5d062f5d8ab5776d72ba77d4c688f0486754f Fix nominatim stubs --- diff --git a/test/controllers/diary_entry_controller_test.rb b/test/controllers/diary_entry_controller_test.rb index 141a86be3..809273c69 100644 --- a/test/controllers/diary_entry_controller_test.rb +++ b/test/controllers/diary_entry_controller_test.rb @@ -7,7 +7,7 @@ class DiaryEntryControllerTest < ActionController::TestCase # Create the default language for diary entries create(:language, :code => "en") # Stub nominatim response for diary entry locations - stub_request(:get, %r{^http://nominatim\.openstreetmap\.org/reverse\?}) + stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?}) .to_return(:status => 404) end diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 200f284d8..4444a2f50 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -3,7 +3,7 @@ require "test_helper" class NotesControllerTest < ActionController::TestCase def setup # Stub nominatim response for note locations - stub_request(:get, %r{^http://nominatim\.openstreetmap\.org/reverse\?}) + stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?}) .to_return(:status => 404) end