spec/rubocop/cops/cop_spec.rb in rubocop-0.1.0 vs spec/rubocop/cops/cop_spec.rb in rubocop-0.2.0

- old
+ new

@@ -1,5 +1,7 @@ +# encoding: utf-8 + require 'spec_helper' module Rubocop module Cop describe Cop do @@ -12,16 +14,16 @@ 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.add_offence('file', 1, 'message') cop.offences.size.should == 1 end it 'will report registered offences' do - cop.add_offence('file', 0, 'line', 'message') + cop.add_offence('file', 1, 'message') cop.has_report?.should be_true end end end