Sha256: fd11589c77a79b08491856de1619fab81e12b27be2fa6475015e390d32f74d33
Contents?: true
Size: 355 Bytes
Versions: 2
Compression:
Stored size: 355 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.2.1 | spec/rubocop/cops/end_of_line_spec.rb |
rubocop-0.2.0 | spec/rubocop/cops/end_of_line_spec.rb |