Sha256: 710f166fa368bcd33ec3e636b991d75ee83d7f79aabd357fb6a8128669a361ee
Contents?: true
Size: 569 Bytes
Versions: 3
Compression:
Stored size: 569 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop describe EndOfLine do let (:eol) { EndOfLine.new } it 'registers an offence for CR+LF' do inspect_source(eol, 'file.rb', ["x=0\r", '']) eol.offences.map(&:message).should == ['Carriage return character detected.'] end it 'registers an offence for CR at end of file' do inspect_source(eol, 'file.rb', ["x=0\r"]) eol.offences.map(&:message).should == ['Carriage return character detected.'] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.3.2 | spec/rubocop/cops/end_of_line_spec.rb |
rubocop-0.3.1 | spec/rubocop/cops/end_of_line_spec.rb |
rubocop-0.3.0 | spec/rubocop/cops/end_of_line_spec.rb |