diff --git a/test/test_helper.bash b/test/test_helper.bash index 6e40d6cb..d52ad0e0 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -114,7 +114,7 @@ path_without() { local exe="$1" local path=":${PATH}:" local found alt util - for found in $(which -a "$exe"); do + for found in $(type -aP "$exe"); do found="${found%/*}" if [ "$found" != "${RBENV_ROOT}/shims" ]; then alt="${RBENV_TEST_DIR}/$(echo "${found#/}" | tr '/' '-')"