Sha256: 0daa896033a9b086dc880b79b7054edb2693bbf51a651fb2a5895e2b4c187c26
Contents?: true
Size: 663 Bytes
Versions: 2
Compression:
Stored size: 663 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop module Style describe EndOfLine do subject(:eol) { EndOfLine.new } it 'registers an offence for CR+LF' do pending 'Fails after upgdate to parser-2.0.0.pre3.' inspect_source(eol, ["x=0\r", '']) expect(eol.messages).to eq( ['Carriage return character detected.']) end it 'registers an offence for CR at end of file' do pending inspect_source(eol, ["x=0\r"]) expect(eol.messages).to eq( ['Carriage return character detected.']) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.13.1 | spec/rubocop/cop/style/end_of_line_spec.rb |
rubocop-0.13.0 | spec/rubocop/cop/style/end_of_line_spec.rb |