diff --git a/test/init.bats b/test/init.bats index 2bf64de7..34265672 100644 --- a/test/init.bats +++ b/test/init.bats @@ -71,11 +71,11 @@ load test_helper assert_line 0 'export PATH="'${PYENV_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="${PYENV_ROOT}/shims:$PATH" run pyenv-init - fish assert_success - refute_line 'setenv PATH "'${PYENV_ROOT}'/shims" $PATH ;' + assert_line 0 "setenv PATH '${PYENV_ROOT}/shims' \$PATH" } @test "outputs sh-compatible syntax" {