-
- def test_disappear_in
- note_closed_date = Time.utc(2022, 1, 1, 12, 0, 0)
- note = create(:note, :closed_at => note_closed_date)
-
- travel_to note_closed_date + 1.day do
- assert_match %r{^<span title=" 8 January 2022 at 12:00">6 days</span>$}, disappear_in(note)
- end
- end