From 90d5d062f5d8ab5776d72ba77d4c688f0486754f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 10 Jul 2018 18:50:29 +0100 Subject: [PATCH] Fix nominatim stubs --- test/controllers/diary_entry_controller_test.rb | 2 +- test/controllers/notes_controller_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2