From b8c80bae2d5b23e67cd7d6c2d2a4ae3df337101f Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 9 Nov 2016 22:07:42 +0000 Subject: [PATCH] Stub nominatim for reverse lookups in note tests --- test/controllers/notes_controller_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 2203dcb60..4b1d9f4ad 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -3,6 +3,12 @@ require "test_helper" class NotesControllerTest < ActionController::TestCase fixtures :users, :user_roles + def setup + # Stub nominatim response for note locations + stub_request(:get, %r{^http://nominatim\.openstreetmap\.org/reverse\?}) + .to_return(:status => 404) + end + ## # test all routes which lead to this controller def test_routes -- 2.43.2