summaryrefslogtreecommitdiff
path: root/test/command_callback/test_scalac_command_callback.vader
diff options
context:
space:
mode:
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 '', ''