1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 15:53:45 -05:00

Add rbenv's own rbenv.d directory to hook paths

This allows rbenv source code to ship with built-in hooks.
This commit is contained in:
Mislav Marohnić
2014-10-16 16:31:51 +02:00
parent bf39d88d11
commit 632263568e
3 changed files with 14 additions and 4 deletions

View File

@@ -68,3 +68,8 @@ load test_helper
assert_line 1 "/other/hooks"
assert_line 2 "${RBENV_ROOT}/rbenv.d"
}
@test "RBENV_HOOK_PATH includes rbenv built-in plugins" {
run rbenv echo "RBENV_HOOK_PATH"
assert_success ":${RBENV_ROOT}/rbenv.d:${BATS_TEST_DIRNAME%/*}/rbenv.d:/usr/local/etc/rbenv.d:/etc/rbenv.d:/usr/lib/rbenv/hooks"
}