mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-17 07:43:46 -05:00
Command `rbenv version-name > .ruby-version` will create an empty `.ruby-version` file before running `rbenv-version-file`. This causes `rbenv-version-file` to return empty string which in turn causes `rbenv-version-name` to return `system`. Ensure size of `.ruby-version` is non-zero as a workaround.
This commit is contained in:
@@ -26,7 +26,7 @@ setup() {
|
||||
}
|
||||
|
||||
@test "detects local file" {
|
||||
touch .ruby-version
|
||||
echo "system" > .ruby-version
|
||||
run rbenv-version-origin
|
||||
assert_success "${PWD}/.ruby-version"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user