mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
Add test for version-origin when version not found in rbenv-exec
This commit is contained in:
parent
d740406daf
commit
09b18cf6f5
1 changed files with 6 additions and 0 deletions
|
@ -20,6 +20,12 @@ create_executable() {
|
|||
assert_failure "rbenv: version \`2.0' is not installed (set by RBENV_VERSION environment variable)"
|
||||
}
|
||||
|
||||
@test "fails with invalid version set from file" {
|
||||
echo 1.9 > .ruby-version
|
||||
run rbenv-exec rspec
|
||||
assert_failure "rbenv: version \`1.9' is not installed (set by $PWD/.ruby-version)"
|
||||
}
|
||||
|
||||
@test "completes with names of executables" {
|
||||
export RBENV_VERSION="2.0"
|
||||
create_executable "ruby" "#!/bin/sh"
|
||||
|
|
Loading…
Reference in a new issue