spec/integration/base_spec.rb in lint_trap-0.0.15 vs spec/integration/base_spec.rb in lint_trap-0.0.16
- old
+ new
@@ -11,19 +11,23 @@
end
def flags(_container, _options)
[]
end
+
+ def parser
+ LintTrap::Parser.find('Standard')
+ end
end.new
end
describe '#lint' do
context 'when linting fails' do
let(:file){fixture_path('this-does-not-exist.rb')}
it 'raises an error with console output' do
expect{|b| linter.lint([file], container, options, &b)}.to raise_error(
- LintTrap::Linter::LintError,
+ described_class::LintError,
start_with(
'An error occurred while running `docker run'
)
)
end