Sha256: f48641716ae7a55264711728b9b1ab7480a14b70dd7d8cf8719454fa6db86236
Contents?: true
Size: 718 Bytes
Versions: 4
Compression:
Stored size: 718 Bytes
Contents
require 'spec_helper' describe LintTrap::Parser::VimQuickfix do let(:parser_output) do "bad.go:5:1: exported function Main should have comment or be unexported\n" end let(:io){StringIO.new(parser_output)} let(:container){LintTrap::Container::Fake.new} subject(:parser){described_class.new} describe '#parse' do it 'parses violations from io' do expect{|b| @result = parser.parse(io, container, &b)}.to yield_successive_args( file: 'bad.go', line: '5', column: '1', length: nil, rule: nil, severity: nil, message: 'exported function Main should have comment or be unexported' ) expect(@result).to eq('') end end end
Version data entries
4 entries across 4 versions & 1 rubygems