瀏覽代碼

Add test for carriage return in ruby-version file

pull/360/head^2
Vincent Robert 12 年之前
父節點
當前提交
3be9773c4f
共有 1 個檔案被更改,包括 7 行新增0 行删除
  1. +7
    -0
      test/version.bats

+ 7
- 0
test/version.bats 查看文件

@ -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…
取消
儲存