diff --git a/test/version-name.bats b/test/version-name.bats index e1d721b0..d0990473 100644 --- a/test/version-name.bats +++ b/test/version-name.bats @@ -47,25 +47,25 @@ SH create_version "2.7.11" create_version "3.5.1" - cat > ".python-version" <<<"2.7.6" + cat > ".python-version" <<<"2.7.11" run pyenv-version-name - assert_success "2.7.6" + assert_success "2.7.11" - PYENV_VERSION=3.3.3 run pyenv-version-name - assert_success "3.3.3" + PYENV_VERSION=3.5.1 run pyenv-version-name + assert_success "3.5.1" } @test "local file has precedence over global" { - create_version "2.7.6" - create_version "3.3.3" + create_version "2.7.11" + create_version "3.5.1" - cat > "${PYENV_ROOT}/version" <<<"2.7.6" + cat > "${PYENV_ROOT}/version" <<<"2.7.11" run pyenv-version-name - assert_success "2.7.6" + assert_success "2.7.11" - cat > ".python-version" <<<"3.3.3" + cat > ".python-version" <<<"3.5.1" run pyenv-version-name - assert_success "3.3.3" + assert_success "3.5.1" } @test "missing version" { @@ -74,22 +74,22 @@ SH } @test "one missing version (second missing)" { - create_version "3.4.2" - PYENV_VERSION="3.4.2:1.2" run pyenv-version-name + create_version "3.5.1" + PYENV_VERSION="3.5.1:1.2" run pyenv-version-name assert_failure assert_output < ".python-version" <<<"python-2.7.6" + create_version "2.7.11" + cat > ".python-version" <<<"python-2.7.11" run pyenv-version-name assert_success - assert_output "2.7.6" + assert_output "2.7.11" }