diff options
author | w0rp <devw0rp@gmail.com> | 2017-07-26 10:29:46 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-07-26 10:29:46 +0100 |
commit | 86297a7c65eadc5dc7668e129c92316aa0a89898 (patch) | |
tree | 03c3147fc90f16751c7b913effcb489f5597e071 /test/handler/test_scalac_handler.vader | |
parent | e45c16d9bbcf7b9df09ce40ef467b13a49108487 (diff) | |
download | ale-86297a7c65eadc5dc7668e129c92316aa0a89898.zip |
Fix #804 - Do not run scalac for sbt files
Diffstat (limited to 'test/handler/test_scalac_handler.vader')
-rw-r--r-- | test/handler/test_scalac_handler.vader | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/handler/test_scalac_handler.vader b/test/handler/test_scalac_handler.vader new file mode 100644 index 00000000..a4c7363a --- /dev/null +++ b/test/handler/test_scalac_handler.vader @@ -0,0 +1,18 @@ +Before: + runtime ale_linters/scala/scalac.vim + +After: + call ale#linter#Reset() + +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('')) + +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('')) |