1
0
mirror of https://github.com/pyenv/pyenv.git synced 2025-11-13 22:03:52 -05:00

add tests for rehash, whence, which

This commit is contained in:
Mislav Marohnić
2013-04-06 12:30:21 +02:00
parent 7a10b64cf7
commit 969af1567a
4 changed files with 118 additions and 9 deletions

View File

@@ -22,14 +22,13 @@ load test_helper
@test "shell change invalid version" {
run rbenv-sh-shell 1.2.3
assert_failure
assert_line "rbenv: version \`1.2.3' not installed"
assert_line "return 1"
assert_failure "\
rbenv: version \`1.2.3' not installed
return 1"
}
@test "shell change version" {
mkdir -p "${RBENV_ROOT}/versions/1.2.3"
run rbenv-sh-shell 1.2.3
assert_success 'export RBENV_VERSION="1.2.3"'
refute_line "return 1"
}