mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
This moves the version command to the dokku binary, and also implements both -v and --version flags on the binary.
29 lines
451 B
Bash
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
|
|
}
|