summaryrefslogtreecommitdiff
path: root/test/fixers/test_rubocop_fixer_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/fixers/test_rubocop_fixer_callback.vader')
-rw-r--r--test/fixers/test_rubocop_fixer_callback.vader8
1 files changed, 2 insertions, 6 deletions
diff --git a/test/fixers/test_rubocop_fixer_callback.vader b/test/fixers/test_rubocop_fixer_callback.vader
index 74160c73..e3383537 100644
--- a/test/fixers/test_rubocop_fixer_callback.vader
+++ b/test/fixers/test_rubocop_fixer_callback.vader
@@ -4,7 +4,7 @@ Before:
" Use an invalid global executable, so we don't match it.
let g:ale_ruby_rubocop_executable = 'xxxinvalid'
- silent! execute 'cd /testplugin/test/command_callback'
+ call ale#test#SetDirectory('/testplugin/test/fixers')
silent cd ..
silent cd command_callback
let g:dir = getcwd()
@@ -12,11 +12,7 @@ Before:
After:
Restore
- silent execute 'cd ' . fnameescape(g:dir)
- " Set the file to something else,
- " or we'll cause issues when running other tests
- silent file 'dummy.rb'
- unlet! g:dir
+ call ale#test#RestoreDirectory()
Execute(The rubocop callback should return the correct default values):
call ale#test#SetFilename('ruby_paths/dummy.rb')