1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-16 07:13:53 -05:00

Display version origin with non-installed versions

This is useful as an indicator where it is coming from.
This commit is contained in:
Daniel Hahler
2015-07-17 17:10:33 +02:00
parent 83ac0fbd94
commit e3982fae38
5 changed files with 5 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ create_executable() {
@test "fails with invalid version" {
export RBENV_VERSION="2.0"
run rbenv-exec ruby -v
assert_failure "rbenv: version \`2.0' is not installed"
assert_failure "rbenv: version \`2.0' is not installed (set by RBENV_VERSION environment variable)"
}
@test "completes with names of executables" {

View File

@@ -49,7 +49,7 @@ setup() {
@test "missing version" {
RBENV_VERSION=1.2 run rbenv-version-name
assert_failure "rbenv: version \`1.2' is not installed"
assert_failure "rbenv: version \`1.2' is not installed (set by RBENV_VERSION environment variable)"
}
@test "version with prefix in name" {

View File

@@ -59,7 +59,7 @@ create_executable() {
@test "version not installed" {
create_executable "2.0" "rspec"
RBENV_VERSION=1.9 run rbenv-which rspec
assert_failure "rbenv: version \`1.9' is not installed"
assert_failure "rbenv: version \`1.9' is not installed (set by RBENV_VERSION environment variable)"
}
@test "no executable found" {