aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec/pronto/eslint_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/pronto/eslint_spec.rb')
-rw-r--r--spec/pronto/eslint_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index 7af0aa2..1117e15 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -25,6 +25,15 @@ module Pronto
25 its(:count) { should == 9 } 25 its(:count) { should == 9 }
26 its(:'first.msg') { should == "Expected { after 'if' condition." } 26 its(:'first.msg') { should == "Expected { after 'if' condition." }
27 end 27 end
28
29 context 'repo with ignored and not ignored file, each with five warnings' do
30 include_context 'eslintignore repo'
31
32 let(:patches) { repo.diff('master') }
33
34 its(:count) { should == 5 }
35 its(:'first.msg') { should == "Use the function form of 'use strict'." }
36 end
28 end 37 end
29 end 38 end
30end 39end