Stub nominatim for reverse lookups in note tests

This commit is contained in:
Tom Hughes 2016-11-09 22:07:42 +00:00
parent a73ac770fb
commit b8c80bae2d

View file

@ -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