From: Markus Doits Date: Sun, 11 Sep 2016 18:27:33 +0000 (+0200) Subject: make config spec pass string option, not regexp X-Git-Tag: v0.1.0~23 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=fa137a53f58bba5a12fd64ac388b4ee4b847d3fb;p=github%2Ffretlink%2Fpronto-hlint.git make config spec pass string option, not regexp --- 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 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)