aboutsummaryrefslogtreecommitdiffhomepage
path: root/spec
diff options
context:
space:
mode:
authorJerome Dalbert <jerome.dalbert@gmail.com>2016-09-11 17:13:47 +0200
committerJerome Dalbert <jerome.dalbert@gmail.com>2016-09-11 20:00:24 +0200
commit212da35bb8529609e3d3aa1ce643ce1551ec36ea (patch)
tree6a8fe1a21ab09af492f4f661e3d604a7601c156c /spec
parentcf6aab4b07d51f2d5f83609ab7112ee9ed5bd1b2 (diff)
downloadpronto-hlint-212da35bb8529609e3d3aa1ce643ce1551ec36ea.tar.gz
pronto-hlint-212da35bb8529609e3d3aa1ce643ce1551ec36ea.tar.zst
pronto-hlint-212da35bb8529609e3d3aa1ce643ce1551ec36ea.zip
Load YAML configuration correctly
Diffstat (limited to 'spec')
-rw-r--r--spec/pronto/eslint_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/pronto/eslint_spec.rb b/spec/pronto/eslint_spec.rb
index 6358621..e354ba4 100644
--- a/spec/pronto/eslint_spec.rb
+++ b/spec/pronto/eslint_spec.rb
@@ -39,7 +39,7 @@ module Pronto
39 39
40 context( 40 context(
41 'with files to lint config that never matches', 41 'with files to lint config that never matches',
42 config: { files_to_lint: 'will never match' } 42 config: { 'files_to_lint' => 'will never match' }
43 ) do 43 ) do
44 it 'returns zero errors' do 44 it 'returns zero errors' do
45 expect(run.count).to eql(0) 45 expect(run.count).to eql(0)
@@ -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)
@@ -57,7 +57,7 @@ module Pronto
57 57
58 context( 58 context(
59 'with different eslint executable', 59 'with different eslint executable',
60 config: { eslint_executable: './custom_eslint.sh' } 60 config: { 'eslint_executable' => './custom_eslint.sh' }
61 ) do 61 ) do
62 it 'calls the custom eslint eslint_executable' do 62 it 'calls the custom eslint eslint_executable' do
63 expect { run }.to raise_error(JSON::ParserError, /custom eslint called/) 63 expect { run }.to raise_error(JSON::ParserError, /custom eslint called/)