diff options
author | Carlos Ramos <carakan@gmail.com> | 2017-10-22 09:22:16 -0400 |
---|---|---|
committer | Carlos Ramos <carakan@gmail.com> | 2017-10-22 19:20:38 -0400 |
commit | 3212278c91bc70d39d1affd6fc86a19ff8cee832 (patch) | |
tree | 7dae451aabd985360a92dd0d2520e5ee0bb7b896 /test/fixers | |
parent | 43653ef54816e5219de56cf57073a93b4ce957b8 (diff) | |
download | ale-3212278c91bc70d39d1affd6fc86a19ff8cee832.zip |
fix test's and delete unused code
Diffstat (limited to 'test/fixers')
-rw-r--r-- | test/fixers/test_elixir_fixer_callback.vader | 16 | ||||
-rw-r--r-- | test/fixers/test_mix_format_fixer_callback.vader | 20 |
2 files changed, 20 insertions, 16 deletions
diff --git a/test/fixers/test_elixir_fixer_callback.vader b/test/fixers/test_elixir_fixer_callback.vader deleted file mode 100644 index ff4786e7..00000000 --- a/test/fixers/test_elixir_fixer_callback.vader +++ /dev/null @@ -1,16 +0,0 @@ -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('')) diff --git a/test/fixers/test_mix_format_fixer_callback.vader b/test/fixers/test_mix_format_fixer_callback.vader new file mode 100644 index 00000000..c6c97c57 --- /dev/null +++ b/test/fixers/test_mix_format_fixer_callback.vader @@ -0,0 +1,20 @@ +Before: + call ale#test#SetDirectory('/testplugin/test/fixers') + Save g:ale_elixir_mix_executable + + let g:ale_elixir_mix_executable = 'xxxinvalid' + +After: + call ale#test#RestoreDirectory() + +Execute(The mix_format callback should return the correct default values): + call ale#test#SetFilename('../elixir-test-files/testfile.ex') + + AssertEqual + \ { + \ 'read_temporary_file': 1, + \ 'command': ale#Escape('xxxinvalid') + \ . ' format %t', + \ }, + \ ale#fixers#mix_format#Fix(bufnr('')) + |