Permalink
Browse files

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.
  • Loading branch information...
jeffkowalski committed May 16, 2017
1 parent be2e606 commit a81da8d864c46c82b8d4ddc8da778f2cdf4274dd
Showing with 3 additions and 3 deletions.
  1. +1 −1 libexec/rbenv-init
  2. +2 −2 test/init.bats
View
@@ -86,7 +86,7 @@ mkdir -p "${RBENV_ROOT}/"{shims,versions}
case "$shell" in
fish )
echo 'set -gx PATH '${RBENV_ROOT}'/shims $PATH'
echo "set -gx PATH '${RBENV_ROOT}/shims' \$PATH"
echo "set -gx RBENV_SHELL $shell"
;;
* )
View
4 test/init.bats 100644 → 100755
@@ -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" {

0 comments on commit a81da8d

Please sign in to comment.