summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-05-01 22:47:08 +0100
committerGitHub <noreply@github.com>2019-05-01 22:47:08 +0100
commit4c6f67a3d02d12a7ce2f35cc3cbe2e166ae83b72 (patch)
treeb8479435bd6a6bdd182b79a42d10779b68035bd3 /test
parent5d65f9303326a2b6be0f3e0492a04277fb4f7376 (diff)
parent2303b05baab5b1a54f42d9d1ab2bff05970ebbb2 (diff)
downloadale-4c6f67a3d02d12a7ce2f35cc3cbe2e166ae83b72.zip
Merge pull request #2446 from fnichol/add-var-sh-shellcheck-change-directory
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'