summaryrefslogtreecommitdiff
path: root/test/command_callback/test_luac_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2018-01-19 17:10:29 +0000
committerGitHub <noreply@github.com>2018-01-19 17:10:29 +0000
commit7b50b3ec8249af6107a12a03820fb35854014b95 (patch)
tree9c8010e33596299f87f41585ffc23b120f4cab20 /test/command_callback/test_luac_command_callback.vader
parenta5ec4143d2ed0527649d4143e244b62b9f879661 (diff)
parent547716eabb3a436f2de623555fb488d3496ccbd4 (diff)
downloadale-7b50b3ec8249af6107a12a03820fb35854014b95.zip
Merge pull request #1272 from Codezerker/master
Add a luac linter for Lua
Diffstat (limited to 'test/command_callback/test_luac_command_callback.vader')
-rw-r--r--test/command_callback/test_luac_command_callback.vader16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/command_callback/test_luac_command_callback.vader b/test/command_callback/test_luac_command_callback.vader
new file mode 100644
index 00000000..f9eb4d3f
--- /dev/null
+++ b/test/command_callback/test_luac_command_callback.vader
@@ -0,0 +1,16 @@
+Before:
+ runtime ale_linters/lua/luac.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The default command should be correct):
+ AssertEqual ale#Escape('luac') . ' -p -',
+ \ join(split(ale_linters#lua#luac#GetCommand(1)))
+
+Execute(The luac executable should be configurable):
+ let g:ale_lua_luac_executable = 'luac.sh'
+
+ AssertEqual 'luac.sh', ale_linters#lua#luac#GetExecutable(1)
+ AssertEqual ale#Escape('luac.sh') . ' -p -',
+ \ join(split(ale_linters#lua#luac#GetCommand(1)))