Sha256: 38621688a5149f2aeca211d993bc192eb3414f11485cfa2df81d93d2064ac852
Contents?: true
Size: 595 Bytes
Versions: 1
Compression:
Stored size: 595 Bytes
Contents
# 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, 1, 'message 1') cop.add_offence(:fatal, 11, 'message 2') emacs_style << cop s = StringIO.new emacs_style.display(s) s.string.should == ["test:1: C: message 1", "test:11: F: message 2\n"].join("\n") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubocop-0.2.0 | spec/rubocop/reports/emacs_style_spec.rb |