mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 09:02:24 +00:00
26 lines
654 B
Plaintext
26 lines
654 B
Plaintext
Before:
|
|
Save g:ale_ruby_ruby_executable
|
|
|
|
unlet! g:ale_ruby_ruby_executable
|
|
|
|
runtime ale_linters/ruby/ruby.vim
|
|
|
|
After:
|
|
Restore
|
|
|
|
call ale#linter#Reset()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertEqual 'ruby', ale_linters#ruby#ruby#GetExecutable(bufnr(''))
|
|
AssertEqual
|
|
\ ale#Escape('ruby') . ' -w -c -T1 %t',
|
|
\ ale_linters#ruby#ruby#GetCommand(bufnr(''))
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_ruby_ruby_executable = 'foobar'
|
|
|
|
AssertEqual 'foobar', ale_linters#ruby#ruby#GetExecutable(bufnr(''))
|
|
AssertEqual
|
|
\ ale#Escape('foobar') . ' -w -c -T1 %t',
|
|
\ ale_linters#ruby#ruby#GetCommand(bufnr(''))
|