diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-28 17:46:43 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-28 17:46:43 +0100 |
commit | 3d5a2690ce707cbc9e71e8ed4d5d1955e4b26d65 (patch) | |
tree | 3ff7e13bb0cd6fd13ef4eae739230b40f0c490de /test/command_callback/test_vulture_command_callback.vader | |
parent | 34e409ea21baa017776b84ec0620eea9f6ec429c (diff) | |
download | ale-3d5a2690ce707cbc9e71e8ed4d5d1955e4b26d65.zip |
#3325 - ale#path#BufferCdString now generates %s:h
Diffstat (limited to 'test/command_callback/test_vulture_command_callback.vader')
-rw-r--r-- | test/command_callback/test_vulture_command_callback.vader | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/command_callback/test_vulture_command_callback.vader b/test/command_callback/test_vulture_command_callback.vader index d6c866b9..bacf8f12 100644 --- a/test/command_callback/test_vulture_command_callback.vader +++ b/test/command_callback/test_vulture_command_callback.vader @@ -12,7 +12,7 @@ After: Execute(The vulture command callback should lint file directory by default): AssertLinter 'vulture', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('vulture') . ' .' Execute(The vulture command callback should lint project root, when present): @@ -31,14 +31,14 @@ Execute(The vulture executable should be configurable, and escaped properly): let g:ale_python_vulture_executable = 'executable with spaces' AssertLinter 'executable with spaces', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('executable with spaces') . ' .' Execute(The vulture command callback should let you set options): let g:ale_python_vulture_options = '--some-option' AssertLinter 'vulture', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('vulture') . ' --some-option .' Execute(The vulture command callback should detect virtualenv directories and switch to the project root): @@ -64,5 +64,5 @@ Execute(Setting executable to 'pipenv' appends 'run vulture'): let g:ale_python_vulture_executable = 'path/to/pipenv' AssertLinter 'path/to/pipenv', - \ ale#path#BufferCdString(bufnr('')) + \ ale#path#CdString(expand('#' . bufnr('') . ':p:h')) \ . ale#Escape('path/to/pipenv') . ' run vulture' . ' .' |