diff options
Diffstat (limited to 'test/linter/test_v_command_callback.vader')
-rw-r--r-- | test/linter/test_v_command_callback.vader | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/test/linter/test_v_command_callback.vader b/test/linter/test_v_command_callback.vader index 17f24ad7..7bffa958 100644 --- a/test/linter/test_v_command_callback.vader +++ b/test/linter/test_v_command_callback.vader @@ -1,25 +1,14 @@ Before: - Save g:ale_v_v_executable - call ale#assert#SetUpLinterTest('v', 'v') - GivenCommandOutput ['/foo/bar', '/foo/baz'] - After: - Restore call ale#assert#TearDownLinterTest() -Execute(The default command should be correct): - AssertLinter 'v', 'v . -o /tmp/vim-ale-v' - -Execute(Extra options should be supported): - let g:ale_v_v_options = '--foo-bar' +Execute(The default v command should be correct): + AssertLinter 'v', ale#Escape('v') . ' . -o /tmp/vim-ale-v' - AssertLinter 'v', 'v --foo-bar . -o /tmp/vim-ale-v' - - let g:ale_v_vbuild_options = '' - -Execute(The executable should be configurable): +Execute(The v executable and options should be configurable): let g:ale_v_v_executable = 'foobar' + let g:ale_v_v_options = '--foo-bar' - AssertLinter 'foobar', 'foobar . -o /tmp/vim-ale-v' + AssertLinter 'foobar', ale#Escape('foobar') . ' --foo-bar . -o /tmp/vim-ale-v' |