diff options
author | w0rp <devw0rp@gmail.com> | 2019-10-09 09:53:50 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2019-10-09 09:53:50 +0100 |
commit | e8de12c9f0f3c1659b8598f25a7e045dd8ec4f24 (patch) | |
tree | 07e7dcb587828d6fa9f7d367b80975e8414b4b53 | |
parent | f9322113095ac01c00d4c38da6aca715663e35cf (diff) | |
download | ale-e8de12c9f0f3c1659b8598f25a7e045dd8ec4f24.zip |
Fix #2821 - Fix the debride linter after merging older code
-rw-r--r-- | ale_linters/ruby/debride.vim | 2 | ||||
-rw-r--r-- | test/command_callback/test_ruby_debride_command_callback.vader | 8 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ale_linters/ruby/debride.vim b/ale_linters/ruby/debride.vim index 0a45644e..3b2cc443 100644 --- a/ale_linters/ruby/debride.vim +++ b/ale_linters/ruby/debride.vim @@ -7,7 +7,7 @@ call ale#Set('ruby_debride_options', '') function! ale_linters#ruby#debride#GetCommand(buffer) abort let l:executable = ale#Var(a:buffer, 'ruby_debride_executable') - return ale#handlers#ruby#EscapeExecutable(l:executable, 'debride') + return ale#ruby#EscapeExecutable(l:executable, 'debride') \ . ale#Var(a:buffer, 'ruby_debride_options') \ . ' %s' endfunction diff --git a/test/command_callback/test_ruby_debride_command_callback.vader b/test/command_callback/test_ruby_debride_command_callback.vader new file mode 100644 index 00000000..f7628432 --- /dev/null +++ b/test/command_callback/test_ruby_debride_command_callback.vader @@ -0,0 +1,8 @@ +Before: + call ale#assert#SetUpLinterTest('ruby', 'debride') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'debride', ale#Escape('debride') . ' %s' |