Sha256: 04cf09d1c9f854f78d6a93f1ecedfd8c0d7543d5cde759d726f472de709f3f7c
Contents?: true
Size: 635 Bytes
Versions: 7
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe LintTrap::Linter::Base do let(:container){LintTrap::Container::Docker.new('lintci/rubocop', '/src')} subject(:linter) do Class.new(described_class) do def name 'ErrorLinter' end end.new end describe '#version' do it 'raises an error if not overriden' do expect{linter.version}.to raise_error(NotImplementedError, 'Must implement version.') end end describe '#lint' do it 'raises an error if #flags is not overriden' do expect{linter.lint([], container, {})}.to raise_error(NotImplementedError, 'Must implement flags.') end end end
Version data entries
7 entries across 7 versions & 1 rubygems