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

Merge remote-tracking branch 'rbenv/master'

Conflicts:
	README.md
	libexec/pyenv---version
	libexec/pyenv-init
	libexec/rbenv
	libexec/rbenv-sh-shell
	libexec/rbenv-which
	test/init.bats
	test/shell.bats
This commit is contained in:
Daniel Hahler
2017-06-05 15:02:24 +02:00
7 changed files with 108 additions and 26 deletions

6
test/init.bats Normal file → Executable file
View File

@@ -47,7 +47,7 @@ OUT
root="$(cd $BATS_TEST_DIRNAME/.. && pwd)"
run pyenv-init - fish
assert_success
assert_line ". '${root}/test/../libexec/../completions/pyenv.fish'"
assert_line "source '${root}/test/../libexec/../completions/pyenv.fish'"
}
@test "fish instructions" {
@@ -73,7 +73,7 @@ OUT
export PATH="${BATS_TEST_DIRNAME}/../libexec:/usr/bin:/bin:/usr/local/bin"
run pyenv-init - fish
assert_success
assert_line 0 "setenv PATH '${PYENV_ROOT}/shims' \$PATH"
assert_line 0 "set -gx PATH '${PYENV_ROOT}/shims' \$PATH"
}
@test "can add shims to PATH more than once" {
@@ -87,7 +87,7 @@ OUT
export PATH="${PYENV_ROOT}/shims:$PATH"
run pyenv-init - fish
assert_success
assert_line 0 "setenv PATH '${PYENV_ROOT}/shims' \$PATH"
assert_line 0 "set -gx PATH '${PYENV_ROOT}/shims' \$PATH"
}
@test "outputs sh-compatible syntax" {