dctlenv/test/dctlenv-version.bats

16 lines
292 B
Plaintext
Raw Normal View History

2021-02-01 18:16:55 +00:00
#!/usr/bin/env bats
load "./test_helper"
expected_version="dctlenv 0.0.4-2-gc013c6c"
@test "dctlenv [version|-v|--version]: returns the expected version" {
cases=("version" "-v" "--version")
for t in ${cases[@]}; do
run dctlenv $t
assert_success "$expected_version"
done
}