spec/linter/jshint_spec.rb in lint_trap-0.0.11 vs spec/linter/jshint_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::JavaScript.new])} + its(:version){is_expected.to eq('2.5.11')} + its(:image){is_expected.to eq('lintci/jshint')} + its(:image_version){is_expected.to eq('lintci/jshint:2.5.11')} describe '#lint' do context 'when config is provided' do let(:options){{config: '.jshintrc'}} @@ -22,11 +25,11 @@ '--reporter', container.config_path(described_class::FORMATTER), '--config', options[:config] ], 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 @@ [ '--reporter', container.config_path(described_class::FORMATTER) ], 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