spec/rubocop/reports/emacs_style_spec.rb in rubocop-0.1.0 vs spec/rubocop/reports/emacs_style_spec.rb in rubocop-0.2.0

- old
+ new

@@ -1,16 +1,18 @@ +# encoding: utf-8 + require 'spec_helper' require 'stringio' module Rubocop module Report describe EmacsStyle do let (:emacs_style) { Rubocop::Report.create('test', :emacs_style) } it 'displays parsable text' do cop = Cop::Cop.new - cop.add_offence(:convention, 0, 'line', 'message 1') - cop.add_offence(:fatal, 10, 'line', 'message 2') + cop.add_offence(:convention, 1, 'message 1') + cop.add_offence(:fatal, 11, 'message 2') emacs_style << cop s = StringIO.new emacs_style.display(s)