diff --git a/test/version-origin.bats b/test/version-origin.bats index 55138920..1257f9b8 100644 --- a/test/version-origin.bats +++ b/test/version-origin.bats @@ -7,10 +7,10 @@ setup() { cd "$RBENV_TEST_DIR" } -@test "reports global file even if it doesn't exist" { +@test "does not report global file if it doesn't exist" { assert [ ! -e "${RBENV_ROOT}/version" ] run rbenv-version-origin - assert_success "${RBENV_ROOT}/version" + assert_success "" } @test "detects global file" { @@ -52,5 +52,5 @@ SH @test "doesn't inherit RBENV_VERSION_ORIGIN from environment" { RBENV_VERSION_ORIGIN=ignored run rbenv-version-origin - assert_success "${RBENV_ROOT}/version" + assert_success "" } diff --git a/test/version.bats b/test/version.bats index 886d0efa..f75af978 100644 --- a/test/version.bats +++ b/test/version.bats @@ -14,7 +14,7 @@ setup() { @test "no version selected" { assert [ ! -d "${RBENV_ROOT}/versions" ] run rbenv-version - assert_success "system (set by ${RBENV_ROOT}/version)" + assert_success "system" } @test "set by RBENV_VERSION" { diff --git a/test/versions.bats b/test/versions.bats index 3273b375..2c88ee2f 100644 --- a/test/versions.bats +++ b/test/versions.bats @@ -21,7 +21,7 @@ stub_system_ruby() { stub_system_ruby assert [ ! -d "${RBENV_ROOT}/versions" ] run rbenv-versions - assert_success "* system (set by ${RBENV_ROOT}/version)" + assert_success "* system" } @test "not even system ruby available" { @@ -42,7 +42,7 @@ stub_system_ruby() { run rbenv-versions assert_success assert_output <