mirror of
https://github.com/pyenv/pyenv.git
synced 2024-12-22 21:52:34 +00:00
Add test for carriage return in ruby-version file
This commit is contained in:
parent
2fd3b18d39
commit
3be9773c4f
1 changed files with 7 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue