diff options
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_elixir_fixer_callback.vader | 16 |
1 files changed, 16 insertions, 0 deletions
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('')) |