summaryrefslogtreecommitdiff
path: root/test/command_callback/test_vint_command_callback.vader
blob: e0051f263425c003cfb219d66f3f1008e523da5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Before:
  call ale#assert#SetUpLinterTest('vim', 'vint')
  let b:command_tail = (has('nvim') ? ' --enable-neovim' : '')
  \ . ' -f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})" %t'

After:
  unlet! b:bin_dir
  unlet! b:executable
  call ale#assert#TearDownLinterTest()

Execute(The default command should be correct):
  AssertLinter 'vint', [
  \ ale#Escape('vint') .' --version',
  \ ale#Escape('vint') .' -s --no-color' . b:command_tail,
  \]

Execute(The executable should be configurable):
  let g:ale_vim_vint_executable = 'foobar'

  AssertLinter 'foobar', [
  \ ale#Escape('foobar') .' --version',
  \ ale#Escape('foobar') .' -s --no-color' . b:command_tail,
  \]