diff options
Diffstat (limited to 'spec/pronto')
-rw-r--r-- | spec/pronto/eslint_spec.rb | 12 |
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 |