diff --git a/test/test_helper.bash b/test/test_helper.bash index 5fac8bb3..f9150792 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -8,7 +8,7 @@ else echo "rbenv: failed to load \`realpath' builtin" >&2 exit 1 fi - RBENV_TEST_DIR="${BATS_TMPDIR}/rbenv" + RBENV_TEST_DIR="$(mktemp -d --tmpdir=$BATS_TMPDIR rbenv.bats.XXX)" fi # guard against executing this block twice due to bats internals