spec/linter/jshint_spec.rb in lint_trap-0.0.8 vs spec/linter/jshint_spec.rb in lint_trap-0.0.9
- old
+ new
@@ -5,9 +5,13 @@
let(:options){{}}
let(:files){%w(good.js bad.js)}
subject(:linter){described_class.new}
let(:command){instance_double(LintTrap::Command)}
+ it_behaves_like 'linter'
+
+ its(:languages){is_expected.to eq([LintTrap::Language::JavaScript.new])}
+
describe '#lint' do
context 'when config is provided' do
let(:options){{config: '.jshintrc'}}
it 'runs the lint command with the correct arguments' do