mirror of
https://github.com/kazhala/dotbare
synced 2024-11-06 09:20:25 +00:00
22 lines
423 B
Bash
Executable File
22 lines
423 B
Bash
Executable File
#!/usr/bin/env bats
|
|
|
|
help() {
|
|
bash "${BATS_TEST_DIRNAME}"/../dotbare fcheckout -h
|
|
}
|
|
|
|
invalid_option() {
|
|
bash "${BATS_TEST_DIRNAME}"/../dotbare fcheckout -p
|
|
}
|
|
|
|
@test "fcheckout help" {
|
|
run help
|
|
[ "${status}" -eq 0 ]
|
|
[ "${lines[0]}" = "Usage: dotbare fcheckout [-h] [-a] [-b] [-c] ..." ]
|
|
}
|
|
|
|
@test "fchekcout invalid option" {
|
|
run invalid_option
|
|
[ "${status}" -eq 1 ]
|
|
[ "${lines[0]}" = "Invalid option: p" ]
|
|
}
|