diff options
author | w0rp <devw0rp@gmail.com> | 2017-12-02 20:38:28 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-12-02 20:38:28 +0000 |
commit | acd12603395f8541c4ee13d9b16e2595c9219343 (patch) | |
tree | 34d273138af676f6456c9280501e6a9a70e820f8 /test/command_callback | |
parent | 2bd966c5cc33b8b19570a7978845c2786da62363 (diff) | |
download | ale-acd12603395f8541c4ee13d9b16e2595c9219343.zip |
Revert "Fix #1186 - Use -w by default for Perl, which does not execute code"
This reverts commit f5fc746d00a8b8e0aaac1904ce97ad7eb52e1b24.
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_perl_command_callback.vader | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/test/command_callback/test_perl_command_callback.vader b/test/command_callback/test_perl_command_callback.vader deleted file mode 100644 index e82f2279..00000000 --- a/test/command_callback/test_perl_command_callback.vader +++ /dev/null @@ -1,37 +0,0 @@ -Before: - Save g:ale_perl_perl_executable - Save g:ale_perl_perl_options - - unlet! g:ale_perl_perl_executable - unlet! g:ale_perl_perl_options - - runtime ale_linters/perl/perl.vim - -After: - Restore - - unlet! b:ale_perl_perl_executable - unlet! b:ale_perl_perl_options - - call ale#linter#Reset() - -Execute(The default Perl command callback should be correct): - AssertEqual - \ 'perl', - \ ale_linters#perl#perl#GetExecutable(bufnr('')) - - AssertEqual - \ ale#Escape('perl') . ' -w -Mwarnings -Ilib %t', - \ ale_linters#perl#perl#GetCommand(bufnr('')) - -Execute(Overriding the executable and command should work): - let b:ale_perl_perl_executable = 'foobar' - let b:ale_perl_perl_options = '-c' - - AssertEqual - \ 'foobar', - \ ale_linters#perl#perl#GetExecutable(bufnr('')) - - AssertEqual - \ ale#Escape('foobar') . ' -c %t', - \ ale_linters#perl#perl#GetCommand(bufnr('')) |