projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a73ac77
)
Stub nominatim for reverse lookups in note tests
author
Tom Hughes
<tom@compton.nu>
Wed, 9 Nov 2016 22:07:42 +0000
(22:07 +0000)
committer
Tom Hughes
<tom@compton.nu>
Wed, 9 Nov 2016 22:07:42 +0000
(22:07 +0000)
test/controllers/notes_controller_test.rb
patch
|
blob
|
history
diff --git
a/test/controllers/notes_controller_test.rb
b/test/controllers/notes_controller_test.rb
index 2203dcb605adc231ce2d8cdccde2e234ae5ff1f5..4b1d9f4ad68f424d88a3afee0cdf83807aecf3c6 100644
(file)
--- 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