mirror of
https://github.com/kazhala/dotbare
synced 2024-11-02 09:40:27 +00:00
22 lines
413 B
Plaintext
22 lines
413 B
Plaintext
|
#!/usr/bin/env bats
|
||
|
|
||
|
help() {
|
||
|
bash "${BATS_TEST_DIRNAME}"/../dotbare funtrack -h
|
||
|
}
|
||
|
|
||
|
invalid_option() {
|
||
|
bash "${BATS_TEST_DIRNAME}"/../dotbare funtrack -p
|
||
|
}
|
||
|
|
||
|
@test "funtrack help" {
|
||
|
run help
|
||
|
[ "${status}" -eq 0 ]
|
||
|
[ "${lines[0]}" = "Usage: dotbare funtrack [-h] [-s] [-S] ..." ]
|
||
|
}
|
||
|
|
||
|
@test "funtrack invalid option" {
|
||
|
run invalid_option
|
||
|
[ "${status}" -eq 1 ]
|
||
|
[ "${lines[0]}" = "Invalid option: p" ]
|
||
|
}
|