Ver a proveniência

Revert quoting change in previous commit; adjust test to match code

Revert back to original quoting style used before previous commit.
Adjust init.bats to reflect changes for successful tests.
pull/927/head^2^2
Jeff Kowalski há 7 anos
ascendente
cometimento
a81da8d864
2 ficheiros alterados com 3 adições e 3 eliminações
  1. +1
    -1
      libexec/rbenv-init
  2. +2
    -2
      test/init.bats

+ 1
- 1
libexec/rbenv-init Ver ficheiro

@ -86,7 +86,7 @@ mkdir -p "${RBENV_ROOT}/"{shims,versions}
case "$shell" in
fish )
echo 9;set -gx PATH '${RBENV_ROOT}'/shims $PATH';
echo 4;set -gx PATH '${RBENV_ROOT}/shims' \$PATH";
echo "set -gx RBENV_SHELL $shell"
;;
* )

+ 2
- 2
test/init.bats Ver ficheiro

@ -73,7 +73,7 @@ OUT
export PATH="${BATS_TEST_DIRNAME}/../libexec:/usr/bin:/bin:/usr/local/bin"
run rbenv-init - fish
assert_success
assert_line 0 "setenv PATH '${RBENV_ROOT}/shims' \$PATH"
assert_line 0 "set -gx PATH '${RBENV_ROOT}/shims' \$PATH"
}
@test "can add shims to PATH more than once" {
@ -87,7 +87,7 @@ OUT
export PATH="${RBENV_ROOT}/shims:$PATH"
run rbenv-init - fish
assert_success
assert_line 0 "setenv PATH '${RBENV_ROOT}/shims' \$PATH"
assert_line 0 "set -gx PATH '${RBENV_ROOT}/shims' \$PATH"
}
@test "outputs sh-compatible syntax" {

Carregando…
Cancelar
Guardar