summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2018-03-18 17:40:34 +0000
committerw0rp <devw0rp@gmail.com>2018-03-18 17:40:34 +0000
commit440502dc939dc817cce1018619019b33c9b0fd42 (patch)
tree35098119f02e5fd2c7a3fc33c82d80ec52f6f9cd /test
parent92612a9eab34432dd0a5fc1eb3075a47d35163fa (diff)
downloadale-440502dc939dc817cce1018619019b33c9b0fd42.zip
Clean up the mix format command and tests
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_mix_format_fixer_callback.vader8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/fixers/test_mix_format_fixer_callback.vader b/test/fixers/test_mix_format_fixer_callback.vader
index 7bd7c77b..365fbecf 100644
--- a/test/fixers/test_mix_format_fixer_callback.vader
+++ b/test/fixers/test_mix_format_fixer_callback.vader
@@ -1,11 +1,15 @@
Before:
- call ale#test#SetDirectory('/testplugin/test/fixers')
Save g:ale_elixir_mix_executable
Save g:ale_elixir_mix_format_options
let g:ale_elixir_mix_executable = 'xxxinvalid'
+ let g:ale_elixir_mix_format_options = ''
+
+ call ale#test#SetDirectory('/testplugin/test/fixers')
After:
+ Restore
+
call ale#test#RestoreDirectory()
Execute(The mix_format callback should return the correct default values):
@@ -15,7 +19,7 @@ Execute(The mix_format callback should return the correct default values):
\ {
\ 'read_temporary_file': 1,
\ 'command': ale#Escape('xxxinvalid')
- \ . ' format %t',
+ \ . ' format %t',
\ },
\ ale#fixers#mix_format#Fix(bufnr(''))