diff --git a/test/test_helper.bash b/test/test_helper.bash index 461bb085..5fac8bb3 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -22,6 +22,9 @@ if [ "$RBENV_ROOT" != "${RBENV_TEST_DIR}/root" ]; then PATH="${BATS_TEST_DIRNAME}/libexec:$PATH" PATH="${RBENV_ROOT}/shims:$PATH" export PATH + + for xdg_var in `env 2>/dev/null | grep ^XDG_ | cut -d= -f1`; do unset "$xdg_var"; done + unset xdg_var fi teardown() {