diff options
author | Markus Doits <markus.doits@stellenticket.de> | 2016-09-11 20:27:33 +0200 |
---|---|---|
committer | Markus Doits <markus.doits@stellenticket.de> | 2016-09-11 20:27:33 +0200 |
commit | fa137a53f58bba5a12fd64ac388b4ee4b847d3fb (patch) | |
tree | 971c07efa38bda1fd8b27b1f3c629b1457cdf21d /spec | |
parent | 25ad6aa647b4e4ea872b009f64d2996b6e83bbf1 (diff) | |
download | pronto-hlint-fa137a53f58bba5a12fd64ac388b4ee4b847d3fb.tar.gz pronto-hlint-fa137a53f58bba5a12fd64ac388b4ee4b847d3fb.tar.zst pronto-hlint-fa137a53f58bba5a12fd64ac388b4ee4b847d3fb.zip |
make config spec pass string option, not regexp
Diffstat (limited to 'spec')
-rw-r--r-- | spec/pronto/eslint_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb index e354ba4..b0b9c22 100644 --- a/spec/pronto/eslint_spec.rb +++ b/spec/pronto/eslint_spec.rb | |||
@@ -48,7 +48,7 @@ module Pronto | |||
48 | 48 | ||
49 | context( | 49 | context( |
50 | 'with files to lint config that matches only .js', | 50 | 'with files to lint config that matches only .js', |
51 | config: { 'files_to_lint' => /\.js/ } | 51 | config: { 'files_to_lint' => '\.js$' } |
52 | ) do | 52 | ) do |
53 | it 'returns correct amount of errors' do | 53 | it 'returns correct amount of errors' do |
54 | expect(run.count).to eql(2) | 54 | expect(run.count).to eql(2) |