Sha256: b58c46226f172cecfdac43375a615237462514e7bd99ace37a094eb313b529f4
Contents?: true
Size: 558 Bytes
Versions: 4
Compression:
Stored size: 558 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, ["x=0\r", '']) expect(eol.offences.map(&:message)).to eq( ['Carriage return character detected.']) end it 'registers an offence for CR at end of file' do inspect_source(eol, ["x=0\r"]) expect(eol.offences.map(&:message)).to eq( ['Carriage return character detected.']) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems