From e82f9431744f160e66cfddd751eeb31cf7c8163e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 13 Oct 2014 21:20:57 +0200 Subject: [PATCH] =?UTF-8?q?Merge=20rbenv's=20"Isolate=20rbenv-which=20test?= =?UTF-8?q?s=20=E2=80=A6"=20(c69d9a11)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is the remaining part of https://github.com/sstephenson/rbenv/commit/c69d9a1128283f20ad883178e3649d7ed92be663. commit c69d9a1128283f20ad883178e3649d7ed92be663 Author: Mislav Marohnić Date: Mon Oct 13 12:39:47 2014 +0200 Isolate rbenv-which tests from any `.ruby-version` file on the system Having a `.ruby-version` file in any of the parent directories of the local clone of rbenv could cause the test suite to fail because it wasn't expecting a local version to be set. --- test/which.bats | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/which.bats b/test/which.bats index 8816cb10..d3b69f2b 100644 --- a/test/which.bats +++ b/test/which.bats @@ -96,7 +96,7 @@ echo HELLO="\$(printf ":%s" "\${hellos[@]}")" exit SH - PYENV_HOOK_PATH="$hook_path" IFS=$' \t\n' run pyenv-which anything + PYENV_HOOK_PATH="$hook_path" IFS=$' \t\n' PYENV_VERSION=system run pyenv-which anything assert_success assert_output "HELLO=:hello:ugly:world:again" }