Fix #2821 - Fix the debride linter after merging older code

This commit is contained in:
w0rp 2019-10-09 09:53:50 +01:00
parent f932211309
commit e8de12c9f0
No known key found for this signature in database
GPG key ID: 0FC1ECAA8C81CD83
2 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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'