spec/linter/jsonlint_spec.rb in lint_trap-0.0.11 vs spec/linter/jsonlint_spec.rb in lint_trap-0.0.13
- old
+ new
@@ -8,18 +8,21 @@
let(:command){instance_double(LintTrap::Command)}
it_behaves_like 'linter'
its(:languages){is_expected.to eq([LintTrap::Language::JSON.new])}
+ its(:version){is_expected.to eq('0.0.4')}
+ its(:image){is_expected.to eq('lintci/jsonlint')}
+ its(:image_version){is_expected.to eq('lintci/jsonlint:0.0.4')}
describe '#lint' do
it 'runs the lint command with the correct arguments' do
expect(LintTrap::Command).to receive(:new).with(
'durable-json-lint',
['--format', '{{file}}:{{line}}:{{column}}:::error:{{{description}}}'],
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