From e8de12c9f0f3c1659b8598f25a7e045dd8ec4f24 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 9 Oct 2019 09:53:50 +0100 Subject: [PATCH] Fix #2821 - Fix the debride linter after merging older code --- ale_linters/ruby/debride.vim | 2 +- .../test_ruby_debride_command_callback.vader | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/command_callback/test_ruby_debride_command_callback.vader 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'