From 5eb95dd6ab2b77d01a85798cd87797a5e43738d8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 6 Mar 2018 01:04:24 -0500 Subject: [PATCH] fix: correct tests by moving to correct file --- tests/unit/10_apps.bats | 13 +++++++++++++ tests/unit/20_build-env.bats | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/tests/unit/10_apps.bats b/tests/unit/10_apps.bats index 5fb722f6b..aa4052802 100644 --- a/tests/unit/10_apps.bats +++ b/tests/unit/10_apps.bats @@ -53,6 +53,19 @@ teardown () { destroy_app } +@test "(apps) app autocreate disabled" { + run dokku config:set --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION='true' + echo "output: "$output + echo "status: "$status + assert_success + + run deploy_app + echo "output: "$output + echo "status: "$status + assert_failure + run dokku config:unset --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION +} + @test "(apps) apps:destroy" { create_app run bash -c "dokku --force apps:destroy $TEST_APP" diff --git a/tests/unit/20_build-env.bats b/tests/unit/20_build-env.bats index c66b5d99a..dc7affbe8 100644 --- a/tests/unit/20_build-env.bats +++ b/tests/unit/20_build-env.bats @@ -70,16 +70,3 @@ teardown() { echo "status: "$status assert_output "herokuish" } - -@test "(build-env) app autocreate disabled" { - run dokku config:set --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION='true' - echo "output: "$output - echo "status: "$status - assert_success - - run deploy_app - echo "output: "$output - echo "status: "$status - assert_failure - run dokku config:unset --no-restart --global DOKKU_DISABLE_APP_AUTOCREATION -}