feat: add tests for all help commands

This commit is contained in:
Jose Diaz-Gonzalez committed 2020-02-10 01:56:50 -05:00
1 parent 7a1537e38e
commit 4a60497d3e
22 files changed
+295 -1

No files matched your search

+14
View File
@@ -12,6 +12,20 @@ teardown() {
global_teardown
}
@test "(repo) repo:help" {
run /bin/bash -c "dokku repo"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage the app's repo"
help_output="$output"
run /bin/bash -c "dokku repo:help"
echo "output: $output"
echo "status: $status"
assert_output_contains "Manage the app's repo"
assert_output "$help_output"
}
@test "(repo) repo:gc, repo:purge-cache" {
run /bin/bash -c "dokku repo:gc $TEST_APP"
echo "output: $output"