Fix nominatim stubs
authorTom Hughes <tom@compton.nu>
Tue, 10 Jul 2018 17:50:29 +0000 (18:50 +0100)
committerTom Hughes <tom@compton.nu>
Tue, 10 Jul 2018 17:50:29 +0000 (18:50 +0100)
test/controllers/diary_entry_controller_test.rb
test/controllers/notes_controller_test.rb

index 141a86be3309183ca1c6a25795078482d098f29f..809273c696e3f7addb70fe48699a20d1f9e731d7 100644 (file)
@@ -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
 
index 200f284d8080b1345801bd062703f9e01c458b3a..4444a2f50b5513bb24c1bd82e301981da47a53ab 100644 (file)
@@ -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