fix: fail on explicitly past dates, rather than pushing forwards to always tomorrow
This commit is contained in:
parent
97e5dcbac4
commit
c11aefb963
2 changed files with 17 additions and 2 deletions
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue