Stub nominatim for reverse lookups in note tests
This commit is contained in:
parent
a73ac770fb
commit
b8c80bae2d
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue