summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorFletcher Nichol <fnichol@nichol.ca>2019-04-18 16:48:10 -0600
committerFletcher Nichol <fnichol@nichol.ca>2019-04-18 16:48:10 -0600
commit2303b05baab5b1a54f42d9d1ab2bff05970ebbb2 (patch)
tree3226f0b2d9b1a978b62c613d51538422a7cbae6e /test
parentfcc2c3ba71afa2a7965f3c1e9ec8c03381178180 (diff)
downloadale-2303b05baab5b1a54f42d9d1ab2bff05970ebbb2.zip
Add g:ale_sh_shellcheck_change_directory
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_shellcheck_command_callback.vader5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/command_callback/test_shellcheck_command_callback.vader b/test/command_callback/test_shellcheck_command_callback.vader
index fcdb184a..1d5b056b 100644
--- a/test/command_callback/test_shellcheck_command_callback.vader
+++ b/test/command_callback/test_shellcheck_command_callback.vader
@@ -14,6 +14,11 @@ After:
Execute(The default shellcheck command should be correct):
AssertLinter 'shellcheck', b:prefix . ale#Escape('shellcheck') . b:suffix
+Execute(The option disabling changing directories should work):
+ let g:ale_sh_shellcheck_change_directory = 0
+
+ AssertLinter 'shellcheck', ale#Escape('shellcheck') . b:suffix
+
Execute(The shellcheck command should accept options):
let b:ale_sh_shellcheck_options = '--foobar'