1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-17 07:43:46 -05:00

Revert support for user-installed gems (#1443)

This commit is contained in:
Mislav Marohnić
2022-10-07 12:56:54 +02:00
committed by GitHub
parent a6cf6aeadb
commit 410e05bf8c
4 changed files with 19 additions and 28 deletions

View File

@@ -105,22 +105,17 @@ ruby
OUT
}
@test "user-install" {
create_executable "${HOME}/.gem/ruby/3.0.0/bin/lolcat"
@test "no shims for user-installed gems" {
create_executable "2.7.5" "ruby"
create_executable "3.1.2" "ruby"
create_executable "${HOME}/.gem/ruby/2.7.0/bin/lolcat"
create_executable "${HOME}/.gem/ruby/3.1.0/bin/pinecone"
assert [ ! -e "${RBENV_ROOT}/shims/lolcat" ]
assert [ ! -e "${RBENV_ROOT}/shims/pinecone" ]
run rbenv-rehash
assert_success ""
run ls "${RBENV_ROOT}/shims"
assert_success
assert_output <<OUT
lolcat
pinecone
OUT
assert [ ! -e "${RBENV_ROOT}/shims/lolcat" ]
assert [ ! -e "${RBENV_ROOT}/shims/pinecone" ]
}
@test "explicit gem home" {