spec/linter/jshint_spec.rb in lint_trap-0.0.15 vs spec/linter/jshint_spec.rb in lint_trap-0.0.16
- old
+ new
@@ -2,10 +2,10 @@
describe LintTrap::Linter::JSHint do
let(:container){LintTrap::Container::Fake.new}
let(:options){{}}
let(:files){%w(good.js bad.js)}
- subject(:linter){described_class.new}
+ subject(:linter){LintTrap::Linter.find('JSHint')}
let(:command){instance_double(LintTrap::Command)}
it_behaves_like 'linter'
its(:languages){is_expected.to eq([LintTrap::Language::JavaScript.new])}