From 2287b3e54eaef553a51943745c5801896ad735ec Mon Sep 17 00:00:00 2001 From: joshr Date: Sat, 25 Aug 2018 09:58:12 -0400 Subject: [PATCH] test that $_SECRETS_DIR is set as expected --- tests/test_init.bats | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/test_init.bats b/tests/test_init.bats index 79d3fad5..7691a650 100644 --- a/tests/test_init.bats +++ b/tests/test_init.bats @@ -14,6 +14,12 @@ function teardown { } +@test "secrets dir env var set as expected" { + _TEST_SECRETS_DIR=${SECRETS_DIR:-".gitsecret"} + [ "${_TEST_SECRETS_DIR}" = "${_SECRETS_DIR}" ] +} + + @test "run 'init' without '.git'" { remove_git_repository