From: Nenad Vujicic Date: Fri, 21 Feb 2025 12:06:17 +0000 (+0100) Subject: Improves note's unit test with the latest dropping X-Git-Tag: live~6^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/00c0a943eada2301726db0f2ef9974691dd84ad9?ds=inline;hp=-c Improves note's unit test with the latest dropping 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. --- 00c0a943eada2301726db0f2ef9974691dd84ad9 diff --git a/test/controllers/notes_controller_test.rb b/test/controllers/notes_controller_test.rb index a70bb32cd..0185c6741 100644 --- a/test/controllers/notes_controller_test.rb +++ b/test/controllers/notes_controller_test.rb @@ -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