X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3d7eb387a7c3573f1a1d17df00adcaa1fb9b9fa5..ae27f7adbe561b20203fa639ac1aa50d0408edc0:/test/functional/notes_controller_test.rb diff --git a/test/functional/notes_controller_test.rb b/test/functional/notes_controller_test.rb index 1c0ded355..6e6a3c17c 100644 --- a/test/functional/notes_controller_test.rb +++ b/test/functional/notes_controller_test.rb @@ -236,6 +236,11 @@ class NotesControllerTest < ActionController::TestCase post :comment, {:id => notes(:hidden_note_with_comment).id, :text => "This is an additional comment"} end assert_response :gone + + assert_no_difference('NoteComment.count') do + post :comment, {:id => notes(:closed_note_with_comment).id, :text => "This is an additional comment"} + end + assert_response :conflict end def test_note_close_success @@ -273,6 +278,9 @@ class NotesControllerTest < ActionController::TestCase post :close, {:id => notes(:hidden_note_with_comment).id} assert_response :gone + + post :close, {:id => notes(:closed_note_with_comment).id} + assert_response :conflict end def test_note_read_success