From a73ac770fb3246494a52bc1ea9c7a6cef27074da Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Nov 2016 21:54:26 +0000 Subject: [PATCH] Stub nominatim for reverse lookups in diary tests --- test/controllers/diary_entry_controller_test.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/controllers/diary_entry_controller_test.rb b/test/controllers/diary_entry_controller_test.rb index 4a8451e89..5e53cb6b0 100644 --- a/test/controllers/diary_entry_controller_test.rb +++ b/test/controllers/diary_entry_controller_test.rb @@ -8,6 +8,9 @@ class DiaryEntryControllerTest < ActionController::TestCase def setup # 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\?}) + .to_return(:status => 404) end ## -- 2.39.5