spec/linter/csslint_spec.rb in lint_trap-0.0.11 vs spec/linter/csslint_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::CSS.new])}
+ its(:version){is_expected.to eq('0.10.0')}
+ its(:image){is_expected.to eq('lintci/csslint')}
+ its(:image_version){is_expected.to eq('lintci/csslint:0.10.0')}
describe '#lint' do
context 'when config is provided' do
let(:options){{config: '.csslintrc'}}
@@ -22,11 +25,11 @@
'--format=compact',
'--config=.csslintrc'
],
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
@@ -37,10 +40,10 @@
[
'--format=compact'
],
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