aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/pronto
diff options
context:
space:
mode:
authorMarkus Doits <markus.doits@stellenticket.de>2016-07-25 16:03:07 +0200
committerMarkus Doits <markus.doits@stellenticket.de>2016-07-25 16:03:07 +0200
commit295096252547f3abb76788fbadf0ce059e74f2cc (patch)
tree3694ebac61dadfc16e1103c4b9e2882ac203b519 /spec/pronto
parent676cea90d963dc89ca9a9a38625fc7cd1cf3b5bc (diff)
downloadpronto-hlint-295096252547f3abb76788fbadf0ce059e74f2cc.tar.gz
pronto-hlint-295096252547f3abb76788fbadf0ce059e74f2cc.tar.zst
pronto-hlint-295096252547f3abb76788fbadf0ce059e74f2cc.zip
Use system eslint instead of eslintrb
This makes sure `eslint` works as expected, e.g. the config used is respected and full feature set is present. One has to make sure `eslint` is properly installed, though.
Diffstat (limited to 'spec/pronto')
-rw-r--r--spec/pronto/eslint_spec.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index 1117e15..27f57d1 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -17,22 +17,22 @@ module Pronto
17 it { should == [] } 17 it { should == [] }
18 end 18 end
19 19
20 context 'patches with a four and a five warnings' do 20 context 'patches with a one and a four warnings' do
21 include_context 'test repo' 21 include_context 'test repo'
22 22
23 let(:patches) { repo.diff('master') } 23 let(:patches) { repo.diff('master') }
24 24
25 its(:count) { should == 9 } 25 its(:count) { should == 5 }
26 its(:'first.msg') { should == "Expected { after 'if' condition." } 26 its(:'first.msg') { should == "'foo' is not defined." }
27 end 27 end
28 28
29 context 'repo with ignored and not ignored file, each with five warnings' do 29 context 'repo with ignored and not ignored file, each with three warnings' do
30 include_context 'eslintignore repo' 30 include_context 'eslintignore repo'
31 31
32 let(:patches) { repo.diff('master') } 32 let(:patches) { repo.diff('master') }
33 33
34 its(:count) { should == 5 } 34 its(:count) { should == 3 }
35 its(:'first.msg') { should == "Use the function form of 'use strict'." } 35 its(:'first.msg') { should == "'HelloWorld' is defined but never used" }
36 end 36 end
37 end 37 end
38 end 38 end