Fix test for adding shims in fish

Commit e2173df4 (for issue #369) did not handle the fish test properly.

This renames it and fixes the assertion.
This commit is contained in:
Daniel Hahler 2015-04-19 23:53:19 +02:00
parent 7ad01b2b48
commit 06c1959e78

View file

@ -71,11 +71,11 @@ load test_helper
assert_line 0 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"' assert_line 0 'export PATH="'${RBENV_ROOT}'/shims:${PATH}"'
} }
@test "doesn't add shims to PATH more than once (fish)" { @test "can add shims to PATH more than once (fish)" {
export PATH="${RBENV_ROOT}/shims:$PATH" export PATH="${RBENV_ROOT}/shims:$PATH"
run rbenv-init - fish run rbenv-init - fish
assert_success assert_success
refute_line 'setenv PATH "'${RBENV_ROOT}'/shims" $PATH ;' assert_line 0 "setenv PATH '${RBENV_ROOT}/shims' \$PATH"
} }
@test "outputs sh-compatible syntax" { @test "outputs sh-compatible syntax" {