mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-17 07:43:46 -05:00
Get rid of explicit exit in fish branch of rbenv-init
Allows for code to be added to the end of the script which will not mysteriously fail to run for fish shell.
This commit is contained in:
@@ -77,3 +77,20 @@ load test_helper
|
||||
assert_success
|
||||
refute_line 'setenv PATH "'${RBENV_ROOT}'/shims" $PATH ;'
|
||||
}
|
||||
|
||||
@test "outputs sh-compatible syntax" {
|
||||
run rbenv-init - bash
|
||||
assert_success
|
||||
assert_line ' case "$command" in'
|
||||
|
||||
run rbenv-init - zsh
|
||||
assert_success
|
||||
assert_line ' case "$command" in'
|
||||
}
|
||||
|
||||
@test "outputs fish-specific syntax (fish)" {
|
||||
run rbenv-init - fish
|
||||
assert_success
|
||||
assert_line ' switch "$command"'
|
||||
refute_line ' case "$command" in'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user