fix: ensure the .buildpacks file exists before writing to it

This commit is contained in:
Jose Diaz-Gonzalez committed 2019-04-17 02:04:06 -04:00
1 parent 13e3950f4a
commit 322dd2246f
2 files changed
+23 -1

No files matched your search

+22
View File
@@ -209,3 +209,25 @@ teardown() {
echo "status: $status"
assert_output_not_exists
}
@test "(buildpacks) buildpacks deploy" {
destroy_app
echo "output: $output"
echo "status: $status"
assert_success
create_app
echo "output: $output"
echo "status: $status"
assert_success
run /bin/bash -c "dokku buildpacks:set $TEST_APP https://github.com/heroku/heroku-buildpack-nodejs"
echo "output: $output"
echo "status: $status"
assert_success
run deploy_app
echo "output: $output"
echo "status: $status"
assert_success
}