refactor: normalises rules with case-insensitivity and some aliases
This commit is contained in:
parent
40790909c0
commit
5a71505dc2
2 changed files with 76 additions and 58 deletions
|
|
@ -168,8 +168,8 @@ load test_helper
|
|||
@test "every with comma-separated rules" {
|
||||
run_nag every "tuesday,thursday" "tomorrow 3pm" standup
|
||||
[ "${status}" -eq 0 ]
|
||||
[[ "${output}" =~ "(tuesday, thursday)" ]]
|
||||
grep -q "tuesday,thursday" "${NAG_PATH}"
|
||||
[[ "${output}" =~ "(tue, thu)" ]]
|
||||
grep -q "tue,thu" "${NAG_PATH}"
|
||||
}
|
||||
|
||||
@test "every snaps to next matching day" {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue