diff options
author | w0rp <devw0rp@gmail.com> | 2017-10-05 22:31:00 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-10-05 22:31:09 +0100 |
commit | 47577564a2294668d7997b261e17fd97f0dd1fe6 (patch) | |
tree | 58ae1e9bbe104a528a888e83e7f8d0e9e5155b9f /test/command_callback/test_scalastyle_command_callback.vader | |
parent | 25045641fbe92d175f2cd322497c9796d612782a (diff) | |
download | ale-47577564a2294668d7997b261e17fd97f0dd1fe6.zip |
Get more command callback tests to pass on Windows
Diffstat (limited to 'test/command_callback/test_scalastyle_command_callback.vader')
-rw-r--r-- | test/command_callback/test_scalastyle_command_callback.vader | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/test/command_callback/test_scalastyle_command_callback.vader b/test/command_callback/test_scalastyle_command_callback.vader index f051b025..953d57b3 100644 --- a/test/command_callback/test_scalastyle_command_callback.vader +++ b/test/command_callback/test_scalastyle_command_callback.vader @@ -1,10 +1,16 @@ Before: + Save g:ale_scala_scalastyle_options + Save g:ale_scalastyle_config_loc + + unlet! g:ale_scala_scalastyle_options + unlet! g:ale_scalastyle_config_loc + runtime ale_linters/scala/scalastyle.vim After: + Restore + call ale#linter#Reset() - let g:ale_scala_scalastyle_options = '' - let g:ale_scalastyle_conf_loc = '' Execute(Should return the correct default command): AssertEqual @@ -15,13 +21,16 @@ Execute(Should allow using a custom config file): let g:ale_scalastyle_config_loc = '/dooper/config.xml' AssertEqual - \ 'scalastyle --config ''/dooper/config.xml'' %t', + \ 'scalastyle' + \ . ' --config ' . ale#Escape('/dooper/config.xml') + \ . ' %t', \ ale_linters#scala#scalastyle#GetCommand(bufnr('')) Execute(Should allow using custom options): let g:ale_scala_scalastyle_options = '--warnings false --quiet true' AssertEqual - \ 'scalastyle --config ''/dooper/config.xml'' --warnings false --quiet true %t', + \ 'scalastyle' + \ . ' --warnings false --quiet true' + \ . ' %t', \ ale_linters#scala#scalastyle#GetCommand(bufnr('')) - |