Sha256: 9281c46940defcc8a4508c21c51e695377df99d1310e5f5caa1d9dc92f4c34e5
Contents?: true
Size: 612 Bytes
Versions: 2
Compression:
Stored size: 612 Bytes
Contents
require 'spec_helper' describe LintTrap::ParserFactory do describe '.linter_for' do it 'returns a NullParser when no valid linter is given' do expect(described_class.parser_for('blah')).to eq(LintTrap::Parsers::NullParser) end it 'returns the StandardParser when a valid linter is given' do expect(described_class.parser_for('rubocop')).to eq(LintTrap::Parsers::StandardParser) end it 'returns the VimQuickfixParser when the parser itself is specified' do expect(described_class.parser_for('vim_quickfix')).to eq(LintTrap::Parsers::VimQuickfixParser) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lint_trap-0.0.2 | spec/parser_factory_spec.rb |
lint_trap-0.0.1 | spec/parser_factory_spec.rb |