Add :closed trait to note factory
This commit is contained in:
parent
b154cefbf0
commit
6272b041c6
4 changed files with 23 additions and 14 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue