From 43653ef54816e5219de56cf57073a93b4ce957b8 Mon Sep 17 00:00:00 2001 From: Carlos Ramos Date: Fri, 20 Oct 2017 17:13:25 -0400 Subject: new fixer elixir mix format (only available in elixir > 1.6) --- test/elixir-test-files/testfile.ex | 0 test/fixers/test_elixir_fixer_callback.vader | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/elixir-test-files/testfile.ex create mode 100644 test/fixers/test_elixir_fixer_callback.vader (limited to 'test') diff --git a/test/elixir-test-files/testfile.ex b/test/elixir-test-files/testfile.ex new file mode 100644 index 00000000..e69de29b 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('')) -- cgit v1.2.3