Sha256: 82689ac1e37e9005d9b3f4065030fd1b98f70f1e0895b944c1e5c1098634d9ab
Contents?: true
Size: 624 Bytes
Versions: 17
Compression:
Stored size: 624 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module Rubocop module Cop describe Cop do let(:cop) { Cop.new } it 'initially has 0 offences' do expect(cop.offences).to be_empty end it 'initially has nothing to report' do expect(cop.has_report?).to be_false end it 'keeps track of offences' do cop.add_offence(:convention, 1, 'message') expect(cop.offences.size).to eq(1) end it 'will report registered offences' do cop.add_offence(:convention, 1, 'message') expect(cop.has_report?).to be_true end end end end
Version data entries
17 entries across 17 versions & 1 rubygems