Files
dokku/tests/unit/10_version.bats
Jose Diaz-Gonzalez 297a26aa20 feat: implement version flags
This moves the version command to the dokku binary, and also implements both -v and --version flags on the binary.
2019-03-11 21:50:05 -04:00

29 lines
451 B
Bash

#!/usr/bin/env bats
load test_helper
setup() {
global_setup
}
teardown() {
global_teardown
}
@test "(version) version, -v, --version" {
run /bin/bash -c "dokku version"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku -v"
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku --version"
echo "output: $output"
echo "status: $status"
assert_success
}