summaryrefslogtreecommitdiff
path: root/test/test_foodcritic_command_callback.vader
blob: a5b02e491674f97476a57cb19073b5cacfbc2952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Before:
  let g:ale_chef_foodcritic_options = '-t ~F011'
  let g:ale_chef_foodcritic_executable = 'foodcritic'

  call ale#test#SetDirectory('/testplugin/test')
  runtime ale_linters/chef/foodcritic.vim

After:
  let g:ale_chef_foodcritic_options = ''
  let g:ale_chef_foodcritic_executable = ''

  call ale#test#RestoreDirectory()
  call ale#linter#Reset()

Execute(command line should be assembled correctly):
  AssertEqual
  \ 'foodcritic -t \~F011 %t',
  \ ale_linters#chef#foodcritic#GetCommand(bufnr(''))