2017-04-05 13:21:47 -04:00
|
|
|
Before:
|
|
|
|
let g:ale_chef_foodcritic_options = '-t ~F011'
|
|
|
|
let g:ale_chef_foodcritic_executable = 'foodcritic'
|
|
|
|
|
2017-07-09 17:43:25 -04:00
|
|
|
call ale#test#SetDirectory('/testplugin/test')
|
2017-04-05 13:21:47 -04:00
|
|
|
runtime ale_linters/chef/foodcritic.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
let g:ale_chef_foodcritic_options = ''
|
|
|
|
let g:ale_chef_foodcritic_executable = ''
|
|
|
|
|
2017-07-09 17:43:25 -04:00
|
|
|
call ale#test#RestoreDirectory()
|
2017-04-05 13:21:47 -04:00
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(command line should be assembled correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ 'foodcritic -t \~F011 %t',
|
|
|
|
\ ale_linters#chef#foodcritic#GetCommand(bufnr(''))
|