summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorHoracio Sanson <horacio@allm.net>2020-03-23 12:18:35 +0900
committerHoracio Sanson <horacio@allm.net>2020-03-23 12:18:35 +0900
commit7b9855f1fe811f4ec80bdeb81b5ab9b6d9249a49 (patch)
treecace14fc0780ed392140fc5bb8ada0f81d4d4e72 /test/command_callback
parentbbe5153fcb36dec9860ced33ae8ff0b5d76ac02a (diff)
downloadale-7b9855f1fe811f4ec80bdeb81b5ab9b6d9249a49.zip
Fix 2732 - Add bashate support
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_bashate_command_callback.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command_callback/test_bashate_command_callback.vader b/test/command_callback/test_bashate_command_callback.vader
new file mode 100644
index 00000000..714cf690
--- /dev/null
+++ b/test/command_callback/test_bashate_command_callback.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('sh', 'bashate')
+ call ale#test#SetFilename('test.sh')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default bashate command should be correct):
+ AssertLinter 'bashate', ale#Escape('bashate') . ' %t'
+
+Execute(The bashate command should accept options):
+ let b:ale_sh_bashate_options = '-i E310 --max-line-length 100'
+
+ AssertLinter 'bashate',
+ \ ale#Escape('bashate') . ' -i E310 --max-line-length 100 %t'