X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/90d5d062f5d8ab5776d72ba77d4c688f0486754f..1dfbd9282c3b863ab2bf5b6a68f68195ba377851:/test/controllers/notes_controller_test.rb diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index 4444a2f50..1ebce60b5 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -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