Sha256: f269d7338be76e5b9ec8d3672451edc2bc57921d6af498087bae421a40ee8173
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require 'spec_helper' module Rubocop module Cop describe Cop do let (:cop) { Cop.new } it 'initially has 0 offences' do cop.offences.size.should == 0 end it 'initially has nothing to report' do cop.has_report?.should be_false end it 'keeps track of offences' do cop.add_offence('file', 0, 'line', 'message') cop.offences.size.should == 1 end it 'will report registered offences' do cop.add_offence('file', 0, 'line', 'message') cop.has_report?.should be_true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.1.0 | spec/rubocop/cops/cop_spec.rb |