fix: fail on explicitly past dates, rather than pushing forwards to always tomorrow

This commit is contained in:
Lewis Wynne 2026-04-01 22:39:11 +01:00
parent 97e5dcbac4
commit c11aefb963
2 changed files with 17 additions and 2 deletions

View file

@ -71,6 +71,11 @@ load test_helper
[ "${status}" -eq 1 ]
}
@test "at with explicit past date fails" {
run_nag at "yesterday 3pm" "too late"
[ "${status}" -eq 1 ]
}
@test "at without message fails" {
run_nag at "tomorrow 3pm"
[ "${status}" -eq 1 ]