summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-11-14 14:50:16 +0000
committerw0rp <devw0rp@gmail.com>2019-11-14 14:50:21 +0000
commit9005a62dc2080327a0f2164d765f837e90e963dc (patch)
tree21b3704d4987e50a2e43958ff53a79e05cf8b4f3 /test
parent7665559d0e6102c9eccf39a119afd9c7a1a0af82 (diff)
downloadale-9005a62dc2080327a0f2164d765f837e90e963dc.zip
Clean up the nimpretty code
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_nimpretty_fixer_callback.vader10
1 files changed, 3 insertions, 7 deletions
diff --git a/test/fixers/test_nimpretty_fixer_callback.vader b/test/fixers/test_nimpretty_fixer_callback.vader
index b05139f0..a26f649a 100644
--- a/test/fixers/test_nimpretty_fixer_callback.vader
+++ b/test/fixers/test_nimpretty_fixer_callback.vader
@@ -2,15 +2,13 @@ Before:
call ale#assert#SetUpFixerTest('nim', 'nimpretty')
After:
- call ale#test#RestoreDirectory()
+ call ale#assert#TearDownFixerTest()
Execute(The nimpretty callback should return the correct default values):
-
AssertEqual
\ {
\ 'read_temporary_file': 1,
- \ 'command': ale#Escape(g:ale_nim_nimpretty_executable)
- \ . ' %t --maxLineLen:80'
+ \ 'command': ale#Escape('nimpretty') . ' %t --maxLineLen:80'
\ },
\ ale#fixers#nimpretty#Fix(bufnr(''))
@@ -20,8 +18,6 @@ Execute(The nimpretty callback should include any additional options):
AssertEqual
\ {
\ 'read_temporary_file': 1,
- \ 'command': ale#Escape(g:ale_nim_nimpretty_executable)
- \ . ' %t'
- \ . ' --some-option',
+ \ 'command': ale#Escape('nimpretty') . ' %t --some-option'
\ },
\ ale#fixers#nimpretty#Fix(bufnr(''))