rbenv/test
Mislav Marohnić 5ce2fd8a2f
Enable fallback to PATH from rbenv shims
Previously, when someone activated rbenv shim `foo`, rbenv would error out if `RBENV_ROOT/versions/RBENV_VERSION/bin/foo` did not exist.

This change allows `foo` to be additionally looked up in PATH as fallback. This prevents a case where one of the Ruby versions is shadowing a system-wide command of the same name, preventing the use of the global command across all other Ruby versions.

rbenv used to be strict around this, allowing the fallback to avoid ever falling back to system Ruby for invocations like `bundle` if the current Ruby version did not yet install Bundler. The current approach prevents this scenario by explicitly disallowing fallback for the following executables: ruby, rake, gem, bundle, bundler, irb, rdoc, ri.
2022-10-07 16:16:34 +02:00
..
libexec Add tests for rbenv PATH and RBENV_HOOK_PATH handling 2014-10-19 14:35:36 +02:00
--version.bats Improve git --version git revision lookup 2015-12-24 03:52:33 +01:00
commands.bats fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
completions.bats add --help to subcommand completions 2015-11-19 12:05:19 -05:00
exec.bats Enable fallback to PATH from rbenv shims 2022-10-07 16:16:34 +02:00
global.bats Remove support for legacy global version files 2015-12-28 22:05:00 -05:00
help.bats Add man page (#1438) 2022-09-27 02:17:50 +02:00
hooks.bats Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
init.bats Init script automatically adds rbenv to PATH if necessary (#1432) 2022-09-24 23:59:13 +02:00
local.bats Remove support for legacy version file 2015-12-28 21:34:07 -05:00
prefix.bats rbenv-prefix: do not silence rbenv-which for system version 2018-08-07 01:44:13 +02:00
rbenv.bats Switch back to resolving symlinks for rbenv executable (#1439) 2022-09-29 15:27:17 +02:00
rehash.bats Revert support for user-installed gems (#1443) 2022-10-07 12:56:54 +02:00
run Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
shell.bats Make work in set -u (nounset) mode 2020-05-24 09:08:05 +03:00
shims.bats tests galore 2013-03-07 15:07:32 -05:00
test_helper.bash Simplify resolving symlinks, remove native extension (#1428) 2022-09-22 11:34:02 +02:00
version-file-read.bats Disallow path segments and directory traversal in .ruby-version files 2019-04-03 12:58:25 +02:00
version-file-write.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-file.bats Fix https://github.com/rbenv/rbenv/issues/1065 2018-02-26 16:49:37 +08:00
version-name.bats Spelling fix 2020-04-23 07:59:28 +03:00
version-origin.bats Fix (revert) test/version-origin.bats 2020-01-16 23:24:42 +08:00
version.bats Fix tests for #1203 2020-01-08 16:41:14 +08:00
versions.bats 💅 Clean up version sorting and add test 2021-09-29 20:07:47 +02:00
whence.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
which.bats Revert support for user-installed gems (#1443) 2022-10-07 12:56:54 +02:00