]> git.immae.eu Git - github/fretlink/pronto-hlint.git/commitdiff
make config spec pass string option, not regexp
authorMarkus Doits <markus.doits@stellenticket.de>
Sun, 11 Sep 2016 18:27:33 +0000 (20:27 +0200)
committerMarkus Doits <markus.doits@stellenticket.de>
Sun, 11 Sep 2016 18:27:33 +0000 (20:27 +0200)
spec/pronto/eslint_spec.rb

index e354ba4e422e60b8d120e79bd480001768a0f0f5..b0b9c22d11bb5fc7788949b2fc4447b36c71730b 100644 (file)
@@ -48,7 +48,7 @@ module Pronto
 
         context(
           'with files to lint config that matches only .js',
-          config: { 'files_to_lint' => /\.js/ }
+          config: { 'files_to_lint' => '\.js$' }
         ) do
           it 'returns correct amount of errors' do
             expect(run.count).to eql(2)