From 06c1959e785e4f4043e9697f04c0cb5906fd6241 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 19 Apr 2015 23:53:19 +0200 Subject: [PATCH] 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. --- test/init.bats | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/init.bats b/test/init.bats index 95db0fec..32b32f60 100644 --- a/test/init.bats +++ b/test/init.bats @@ -71,11 +71,11 @@ load test_helper 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" run rbenv-init - fish assert_success - refute_line 'setenv PATH "'${RBENV_ROOT}'/shims" $PATH ;' + assert_line 0 "setenv PATH '${RBENV_ROOT}/shims' \$PATH" } @test "outputs sh-compatible syntax" {