Sha256: 1a1fe59271671cebfcb93a84dc4e23ae62e9ab9cd516e89aaf643128b2e4d131
Contents?: true
Size: 718 Bytes
Versions: 3
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(io, container)} describe '#parse' do it 'parses violations from io' do expect{|b| @result = parser.parse(&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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lint_trap-0.0.15 | spec/parser/vim_quickfix_spec.rb |
lint_trap-0.0.14 | spec/parser/vim_quickfix_spec.rb |
lint_trap-0.0.13 | spec/parser/vim_quickfix_spec.rb |