summaryrefslogtreecommitdiff
path: root/test/command_callback/test_luac_command_callback.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-07-15 18:24:53 +0100
committerw0rp <devw0rp@gmail.com>2018-07-15 18:28:28 +0100
commita42999a639b2916b769a85f37d037be314d9d61b (patch)
tree5ebfb4d357dc673efa93fd32a66b489c4510de40 /test/command_callback/test_luac_command_callback.vader
parent5155a35a80fe3b20659eb0f28cc6cc720532dd3f (diff)
downloadale-a42999a639b2916b769a85f37d037be314d9d61b.zip
Massively reduce the amount of code needed for linter tests
Diffstat (limited to 'test/command_callback/test_luac_command_callback.vader')
-rw-r--r--test/command_callback/test_luac_command_callback.vader11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/command_callback/test_luac_command_callback.vader b/test/command_callback/test_luac_command_callback.vader
index f9eb4d3f..8a2345ec 100644
--- a/test/command_callback/test_luac_command_callback.vader
+++ b/test/command_callback/test_luac_command_callback.vader
@@ -1,16 +1,13 @@
Before:
- runtime ale_linters/lua/luac.vim
+ call ale#assert#SetUpLinterTest('lua', 'luac')
After:
- call ale#linter#Reset()
+ call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
- AssertEqual ale#Escape('luac') . ' -p -',
- \ join(split(ale_linters#lua#luac#GetCommand(1)))
+ AssertLinter 'luac', ale#Escape('luac') . ' -p - '
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)))
+ AssertLinter 'luac.sh', ale#Escape('luac.sh') . ' -p - '