summaryrefslogtreecommitdiff
path: root/test/command_callback/test_perlcritic_command_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_perlcritic_command_callback.vader')
-rw-r--r--test/command_callback/test_perlcritic_command_callback.vader36
1 files changed, 0 insertions, 36 deletions
diff --git a/test/command_callback/test_perlcritic_command_callback.vader b/test/command_callback/test_perlcritic_command_callback.vader
deleted file mode 100644
index 0f1e2856..00000000
--- a/test/command_callback/test_perlcritic_command_callback.vader
+++ /dev/null
@@ -1,36 +0,0 @@
-Before:
- call ale#assert#SetUpLinterTest('perl', 'perlcritic')
- call ale#test#SetFilename('test.pl')
- let g:ale_perl_perlcritic_profile = ''
-
-After:
- unlet! b:readme_path
- call ale#assert#TearDownLinterTest()
-
-Execute(The command should be correct with g:ale_perl_perlcritic_showrules off):
- let b:ale_perl_perlcritic_showrules = 0
-
- AssertLinter 'perlcritic', ale#Escape('perlcritic')
- \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'
-
-Execute(The command should be correct with g:ale_perl_perlcritic_showrules on):
- let b:ale_perl_perlcritic_showrules = 1
-
- AssertLinter 'perlcritic', ale#Escape('perlcritic')
- \ . ' --verbose ' . ale#Escape('%l:%c %m [%p]\n') . ' --nocolor'
-
-Execute(The command search for the profile file when set):
- let b:ale_perl_perlcritic_profile = 'README.md'
-
- let b:readme_path = ale#path#Simplify(expand('%:p:h:h:h') . '/README.md')
-
- AssertLinter 'perlcritic', ale#Escape('perlcritic')
- \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'
- \ . ' --profile ' . ale#Escape(b:readme_path)
-
-Execute(Extra options should be set appropriately):
- let b:ale_perl_perlcritic_options = 'beep boop'
-
- AssertLinter 'perlcritic', ale#Escape('perlcritic')
- \ . ' --verbose ' . ale#Escape('%l:%c %m\n') . ' --nocolor'
- \ . ' beep boop'