]> git.openstreetmap.org Git - rails.git/commitdiff
Improves note's unit test with the latest dropping
authorNenad Vujicic <nenadus@gmail.com>
Fri, 21 Feb 2025 12:06:17 +0000 (13:06 +0100)
committerNenad Vujicic <nenadus@gmail.com>
Fri, 21 Feb 2025 12:32:19 +0000 (13:32 +0100)
Improves note's unit test test_read_note_suspended_opener_and_comment by specifying "commented" type to second note comment (by default "opened") to support the latest dropping displaying notes comments.

test/controllers/notes_controller_test.rb

index a70bb32cd7789d33ae680e2d7a52693aaae68667..0185c67413141d954b88951e220800e72518ed24 100644 (file)
@@ -164,7 +164,7 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
   def test_read_note_suspended_opener_and_comment
     note = create(:note)
     create(:note_comment, :note => note, :author => create(:user, :suspended))
-    create(:note_comment, :note => note)
+    create(:note_comment, :note => note, :event => "commented")
 
     sidebar_browse_check :note_path, note.id, "notes/show"
     assert_select "div.note-comments ul li", :count => 1