summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-29 20:57:34 +0200
committerAdriaan Zonnenberg <amz@adriaan.xyz>2017-04-30 22:38:28 +0200
commitb0bba34ea2228ac73ecc63f1c459daf2a02066c4 (patch)
treebe9a9718b08d72aaa772f77508d7a4a1e839a279 /test
parent6547adcf2fc2b262aa5c8047f5687d6e65351087 (diff)
downloadale-b0bba34ea2228ac73ecc63f1c459daf2a02066c4.zip
Rename g:ale_linters_sh_* to g:ale_sh_*
Diffstat (limited to 'test')
-rw-r--r--test/test_backwards_compatibility.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_backwards_compatibility.vader b/test/test_backwards_compatibility.vader
new file mode 100644
index 00000000..e4e3756f
--- /dev/null
+++ b/test/test_backwards_compatibility.vader
@@ -0,0 +1,19 @@
+" These tests, and the code that it covers, may be removed upon a major release.
+
+After:
+ unlet! g:ale_linters_sh_shellcheck_exclusions
+ unlet! g:ale_sh_shellcheck_exclusions
+ unlet! g:ale_linters_sh_shell_default_shell
+ unlet! g:ale_sh_shell_default_shell
+
+Execute(Old variable name for the 'shellcheck' linter should still work):
+ let g:ale_linters_sh_shellcheck_exclusions = 'SC1234'
+ runtime ale_linters/sh/shellcheck.vim
+
+ AssertEqual 'SC1234', g:ale_sh_shellcheck_exclusions
+
+Execute (Old variable name for the 'shell' linter should still work):
+ let g:ale_linters_sh_shell_default_shell = 'woosh'
+ runtime ale_linters/sh/shell.vim
+
+ AssertEqual 'woosh', g:ale_sh_shell_default_shell