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 141a86b..809273c 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 200f284..4444a2f 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