summaryrefslogtreecommitdiff
path: root/test/command_callback/test_scalac_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_scalac_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_scalac_command_callback.vader')
-rw-r--r--test/command_callback/test_scalac_command_callback.vader12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/command_callback/test_scalac_command_callback.vader b/test/command_callback/test_scalac_command_callback.vader
index 6bb31b3f..115731b3 100644
--- a/test/command_callback/test_scalac_command_callback.vader
+++ b/test/command_callback/test_scalac_command_callback.vader
@@ -1,17 +1,13 @@
Before:
- runtime ale_linters/scala/scalac.vim
+ call ale#assert#SetUpLinterTest('scala', 'scalac')
After:
- call ale#linter#Reset()
+ call ale#assert#TearDownLinterTest()
Given scala(An empty Scala file):
Execute(The default executable and command should be correct):
- AssertEqual 'scalac', ale_linters#scala#scalac#GetExecutable(bufnr(''))
- AssertEqual
- \ ale#Escape('scalac') . ' -Ystop-after:parser %t',
- \ ale_linters#scala#scalac#GetCommand(bufnr(''))
+ AssertLinter 'scalac', ale#Escape('scalac') . ' -Ystop-after:parser %t'
Given scala.sbt(An empty SBT file):
Execute(scalac should not be run for sbt files):
- AssertEqual '', ale_linters#scala#scalac#GetExecutable(bufnr(''))
- AssertEqual '', ale_linters#scala#scalac#GetCommand(bufnr(''))
+ AssertLinter '', ''