mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-12 06:57:10 -05:00
Prefer local over global version file
This commit is contained in:
parent
41580b69db
commit
85f304ef3b
1 changed files with 9 additions and 0 deletions
|
@ -36,3 +36,12 @@ setup() {
|
||||||
run rbenv-version
|
run rbenv-version
|
||||||
assert_success "1.9.3 (set by ${RBENV_ROOT}/version)"
|
assert_success "1.9.3 (set by ${RBENV_ROOT}/version)"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "prefer local over global file" {
|
||||||
|
create_version "1.9.3"
|
||||||
|
create_version "3.0.0"
|
||||||
|
cat > ".ruby-version" <<<"1.9.3"
|
||||||
|
cat > "${RBENV_ROOT}/version" <<<"3.0.0"
|
||||||
|
run rbenv-version
|
||||||
|
assert_success "1.9.3 (set by ${PWD}/.ruby-version)"
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue