X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6fe5d4210099e714586bdcb5e7447c321afdfdc4..de29e9b3f59d7a06fbe2e32096328bd8a6ed2b3a:/test/controllers/notes_controller_test.rb diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 200f284d8..1ebce60b5 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -3,7 +3,7 @@ require "test_helper" class NotesControllerTest < ActionController::TestCase def setup # Stub nominatim response for note locations - stub_request(:get, %r{^http://nominatim\.openstreetmap\.org/reverse\?}) + stub_request(:get, %r{^https://nominatim\.openstreetmap\.org/reverse\?}) .to_return(:status => 404) end @@ -625,6 +625,10 @@ class NotesControllerTest < ActionController::TestCase assert_equal "This is a hide comment", js["properties"]["comments"].last["text"] assert_equal moderator_user.display_name, js["properties"]["comments"].last["user"] + get :show, :params => { :id => open_note_with_comment.id, :format => "json" } + assert_response :success + + basic_authorization user.email, "test" get :show, :params => { :id => open_note_with_comment.id, :format => "json" } assert_response :gone end