summaryrefslogtreecommitdiff
path: root/test/command_callback/test_fusionlint_command_callback.vader
blob: 5398066ca18888cf3b7066c692b758410cb23afb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Before:
  runtime ale_linters/fuse/fusionlint.vim

After:
  call ale#linter#Reset()
  let g:ale_fuse_fusionlint_options = ''
  let g:ale_fuse_fusionlint_executable = 'fusion-lint'

Execute(The fuse fusionlint command callback should return the correct default string):
  AssertEqual '''fusion-lint'' --filename %s -i',
  \ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))

Execute(The fuse fusionlint command callback should let you set options):
  let g:ale_fuse_fusionlint_options = '--example-option argument'

  AssertEqual '''fusion-lint'' --example-option argument --filename %s -i',
  \ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))

Execute(The fusionlint executable should be configurable):
  let g:ale_fuse_fusionlint_executable = 'util/linter.fuse'

  AssertEqual 'util/linter.fuse', ale_linters#fuse#fusionlint#GetExecutable(1)
  AssertEqual '''util/linter.fuse'' --filename %s -i',
  \ join(split(ale_linters#fuse#fusionlint#GetCommand(1)))