summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/elixir-test-files/testfile.ex0
-rw-r--r--test/fixers/test_elixir_fixer_callback.vader16
2 files changed, 16 insertions, 0 deletions
diff --git a/test/elixir-test-files/testfile.ex b/test/elixir-test-files/testfile.ex
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/test/elixir-test-files/testfile.ex
diff --git a/test/fixers/test_elixir_fixer_callback.vader b/test/fixers/test_elixir_fixer_callback.vader
new file mode 100644
index 00000000..ff4786e7
--- /dev/null
+++ b/test/fixers/test_elixir_fixer_callback.vader
@@ -0,0 +1,16 @@
+Before:
+ call ale#test#SetDirectory('/testplugin/test/fixers')
+
+After:
+ call ale#test#RestoreDirectory()
+
+Execute(The executable path should be correct):
+ call ale#test#SetFilename('../elixir-test-files/testfile.ex')
+
+ AssertEqual
+ \ {
+ \ 'read_temporary_file': 1,
+ \ 'command': 'mix format'
+ \ . ' %t',
+ \ },
+ \ ale#fixers#elixir#Fix(bufnr(''))