mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 19:23:37 +00:00
test completions for exec
This commit is contained in:
parent
45f651ab00
commit
9b58b6642e
1 changed files with 13 additions and 0 deletions
|
@ -15,6 +15,19 @@ create_executable() {
|
|||
assert_failure "rbenv: version \`2.0' is not installed"
|
||||
}
|
||||
|
||||
@test "completes with names of executables" {
|
||||
export RBENV_VERSION="2.0"
|
||||
create_executable "ruby"
|
||||
create_executable "rake"
|
||||
|
||||
rbenv-rehash
|
||||
run rbenv-completions exec
|
||||
assert_success
|
||||
assert_line 0 "rake"
|
||||
assert_line 1 "ruby"
|
||||
refute_line 2
|
||||
}
|
||||
|
||||
@test "supports hook path with spaces" {
|
||||
hook_path="${RBENV_TEST_DIR}/custom stuff/rbenv hooks"
|
||||
mkdir -p "${hook_path}/exec"
|
||||
|
|
Loading…
Reference in a new issue