mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-17 15:53:45 -05:00
Add test for carriage return in ruby-version file
This commit is contained in:
@@ -30,6 +30,13 @@ setup() {
|
||||
assert_success "1.9.3 (set by ${PWD}/.ruby-version)"
|
||||
}
|
||||
|
||||
@test "set by local file containing CR" {
|
||||
create_version "1.9.3"
|
||||
cat > ".ruby-version" <<< $'1.9.3\r'
|
||||
run rbenv-version
|
||||
assert_success "1.9.3 (set by ${PWD}/.ruby-version)"
|
||||
}
|
||||
|
||||
@test "set by global file" {
|
||||
create_version "1.9.3"
|
||||
cat > "${RBENV_ROOT}/version" <<<"1.9.3"
|
||||
|
||||
Reference in New Issue
Block a user