- assert_equal true, create(:note, :status => "closed", :closed_at => Time.now).closed?
- assert_equal false, create(:note, :status => "open", :closed_at => nil).closed?
+ assert_predicate create(:note, :closed), :closed?
+ assert_not_predicate create(:note, :status => "open", :closed_at => nil), :closed?
+ end
+
+ def test_description
+ comment = create(:note_comment)
+ assert_equal comment.body, comment.note.description
+
+ user = create(:user)
+ comment = create(:note_comment, :author => user)
+ assert_equal comment.body, comment.note.description