Parcourir la source

Add test for carriage return in ruby-version file

pull/360/head^2
Vincent Robert il y a 12 ans
Parent
révision
3be9773c4f
1 fichiers modifiés avec 7 ajouts et 0 suppressions
  1. +7
    -0
      test/version.bats

+ 7
- 0
test/version.bats Voir le fichier

@ -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"

Chargement…
Annuler
Enregistrer