Add :closed trait to note factory

This commit is contained in:
Anton Khorev 2024-01-05 12:34:27 +03:00
parent b154cefbf0
commit 6272b041c6
4 changed files with 23 additions and 14 deletions

View file

@ -11,7 +11,7 @@ class NoteCommentsTest < ApplicationSystemTestCase
end
test "closed note has no login notice" do
note = create(:note_with_comments, :status => "closed", :closed_at => Time.now.utc)
note = create(:note_with_comments, :closed)
visit note_path(note)
assert_no_button "Reactivate"