fix: use the same method to trigger the client

This commit is contained in:
Jose Diaz-Gonzalez
2017-10-01 19:47:40 -04:00
committed by Michael Hobbs
parent 7d73577952
commit 690c32ceb8

View File

@@ -23,7 +23,7 @@ teardown() {
}
@test "(client) no args should print help" {
run /bin/bash -c "./contrib/dokku_client.sh | head -1 | grep -E '^Usage: dokku \[.+\] COMMAND <app> \[.+\]'"
run bash -c "${BATS_TEST_DIRNAME}/../../contrib/dokku_client.sh | head -1 | grep -E '^Usage: dokku \[.+\] COMMAND <app> \[.+\]'"
echo "output: "$output
echo "status: "$status
assert_success