diff options
Diffstat (limited to 'test/test_foodcritic_command_callback.vader')
-rw-r--r-- | test/test_foodcritic_command_callback.vader | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/test/test_foodcritic_command_callback.vader b/test/test_foodcritic_command_callback.vader index 32beb926..a5b02e49 100644 --- a/test/test_foodcritic_command_callback.vader +++ b/test/test_foodcritic_command_callback.vader @@ -2,25 +2,17 @@ Before: let g:ale_chef_foodcritic_options = '-t ~F011' let g:ale_chef_foodcritic_executable = 'foodcritic' - silent! cd /testplugin/test - let g:dir = getcwd() - + call ale#test#SetDirectory('/testplugin/test') runtime ale_linters/chef/foodcritic.vim After: let g:ale_chef_foodcritic_options = '' let g:ale_chef_foodcritic_executable = '' - silent execute 'cd ' . g:dir - unlet! g:dir - + call ale#test#RestoreDirectory() call ale#linter#Reset() Execute(command line should be assembled correctly): - AssertEqual \ 'foodcritic -t \~F011 %t', \ ale_linters#chef#foodcritic#GetCommand(bufnr('')) - - :q - |