summaryrefslogtreecommitdiff
path: root/test/command_callback/test_puglint_command_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_puglint_command_callback.vader')
-rw-r--r--test/command_callback/test_puglint_command_callback.vader7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/command_callback/test_puglint_command_callback.vader b/test/command_callback/test_puglint_command_callback.vader
index 830d63b3..6d189899 100644
--- a/test/command_callback/test_puglint_command_callback.vader
+++ b/test/command_callback/test_puglint_command_callback.vader
@@ -7,17 +7,14 @@ Before:
let g:ale_pug_puglint_executable = 'pug-lint'
let g:ale_pug_puglint_use_global = 0
- silent! cd /testplugin/test/command_callback
- let g:dir = getcwd()
+ call ale#test#SetDirectory('/testplugin/test/command_callback')
runtime ale_linters/pug/puglint.vim
After:
Restore
- silent execute 'cd ' . fnameescape(g:dir)
- unlet! g:dir
-
+ call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(puglint should detect local executables and package.json):