]> git.immae.eu Git - github/fretlink/pronto-hlint.git/blobdiff - spec/pronto/eslint_spec.rb
Load YAML configuration correctly
[github/fretlink/pronto-hlint.git] / spec / pronto / eslint_spec.rb
index 6358621d2d0da390f639ae7d04a028353f9a66d2..e354ba4e422e60b8d120e79bd480001768a0f0f5 100644 (file)
@@ -39,7 +39,7 @@ module Pronto
 
         context(
           'with files to lint config that never matches',
-          config: { files_to_lint: 'will never match' }
+          config: { 'files_to_lint' => 'will never match' }
         ) do
           it 'returns zero errors' do
             expect(run.count).to eql(0)
@@ -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)
@@ -57,7 +57,7 @@ module Pronto
 
         context(
           'with different eslint executable',
-          config: { eslint_executable: './custom_eslint.sh' }
+          config: { 'eslint_executable' => './custom_eslint.sh' }
         ) do
           it 'calls the custom eslint eslint_executable' do
             expect { run }.to raise_error(JSON::ParserError, /custom eslint called/)