spec/linter/coffeelint_spec.rb in lint_trap-0.0.11 vs spec/linter/coffeelint_spec.rb in lint_trap-0.0.13
- old
+ new
@@ -8,10 +8,13 @@
let(:command){instance_double(LintTrap::Command)}
it_behaves_like 'linter'
its(:languages){is_expected.to eq([LintTrap::Language::CoffeeScript.new])}
+ its(:version){is_expected.to eq('1.9.7')}
+ its(:image){is_expected.to eq('lintci/coffeelint')}
+ its(:image_version){is_expected.to eq('lintci/coffeelint:1.9.7')}
describe '#lint' do
context 'when config is provided' do
let(:options){{config: 'coffeelint.json'}}
@@ -23,11 +26,11 @@
'--nocolor',
'--file=coffeelint.json'
],
files
).and_return(command)
- expect(command).to receive(:run).with(container)
+ expect(command).to receive(:run).with(container).and_return(true)
linter.lint(files, container, options)
end
end
@@ -39,10 +42,10 @@
"--reporter=#{container.config_path(described_class::REPORTER)}",
'--nocolor'
],
files
).and_return(command)
- expect(command).to receive(:run).with(container)
+ expect(command).to receive(:run).with(container).and_return(true)
linter.lint(files, container, options)
end
end
end