summaryrefslogtreecommitdiff
path: root/test/handler/test_mix_handler.vader
diff options
context:
space:
mode:
authorColby Dehart <colbydehart@gmail.com>2018-06-02 13:03:56 -0400
committerColby Dehart <colbydehart@gmail.com>2018-06-02 13:03:56 -0400
commit81739be0a04956458471f196874d4206b21e60fb (patch)
treef60fa72b4087a9492bfa5a6247ee9f5097ceaae9 /test/handler/test_mix_handler.vader
parentd760558007631294673171451f72fc4c2f5a89a7 (diff)
downloadale-81739be0a04956458471f196874d4206b21e60fb.zip
handled temp file and env variable correctly; added tests
Diffstat (limited to 'test/handler/test_mix_handler.vader')
-rw-r--r--test/handler/test_mix_handler.vader21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/handler/test_mix_handler.vader b/test/handler/test_mix_handler.vader
new file mode 100644
index 00000000..a5549b5d
--- /dev/null
+++ b/test/handler/test_mix_handler.vader
@@ -0,0 +1,21 @@
+Before:
+ runtime ale_linters/elixir/mix.vim
+
+After:
+ call ale#linter#Reset()
+
+Execute(The mix handler should parse lines correctly):
+
+ AssertEqual
+ \ [
+ \ {
+ \ 'bufnr': 347,
+ \ 'lnum': 87,
+ \ 'col': 0,
+ \ 'text': 'undefined function update_in/4',
+ \ 'type': 'E',
+ \ },
+ \ ],
+ \ ale_linters#elixir#mix#Handle(347, [
+ \ '** (CompileError) apps/sim/lib/sim/server.ex:87: undefined function update_in/4'
+ \ ])