mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Add tests for non-directory types under RBENV_ROOT/versions/
This commit is contained in:
parent
f237a11f4f
commit
9bcef4b875
1 changed files with 20 additions and 0 deletions
|
@ -119,3 +119,23 @@ OUT
|
|||
2.0.0
|
||||
OUT
|
||||
}
|
||||
|
||||
@test "ignores non-directories under versions" {
|
||||
create_version "1.9"
|
||||
touch "${RBENV_ROOT}/versions/hello"
|
||||
|
||||
run rbenv-versions --bare
|
||||
assert_success "1.9"
|
||||
}
|
||||
|
||||
@test "lists symlinks under versions" {
|
||||
create_version "1.8.7"
|
||||
ln -s "1.8.7" "${RBENV_ROOT}/versions/1.8"
|
||||
|
||||
run rbenv-versions --bare
|
||||
assert_success
|
||||
assert_output <<OUT
|
||||
1.8
|
||||
1.8.7
|
||||
OUT
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue