spec/linter/golint_spec.rb in lint_trap-0.0.8 vs spec/linter/golint_spec.rb in lint_trap-0.0.9
- old
+ new
@@ -5,9 +5,13 @@
let(:options){{}}
let(:files){%w(good.go bad.go)}
subject(:linter){described_class.new}
let(:command){instance_double(LintTrap::Command)}
+ it_behaves_like 'linter'
+
+ its(:languages){is_expected.to eq([LintTrap::Language::Go.new])}
+
describe '#lint' do
it 'runs the lint command with the correct arguments' do
expect(LintTrap::Command).to receive(:new).with(
'golint',
[],