9fe7b1fe6a
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
24 lines
614 B
Text
24 lines
614 B
Text
Before:
|
||
Save g:ale_dhall_executable
|
||
Save g:ale_dhall_options
|
||
|
||
" Use an invalid global executable, so we don’t match it.
|
||
let g:ale_dhall_executable = 'odd-dhall'
|
||
let g:ale_dhall_options = '--ascii'
|
||
let g:ale_dhall_freeze_options = '--all'
|
||
|
||
call ale#assert#SetUpFixerTest('dhall', 'dhall-freeze')
|
||
|
||
After:
|
||
call ale#assert#TearDownFixerTest()
|
||
|
||
Execute(The dhall-freeze callback should return the correct options):
|
||
AssertFixer
|
||
\ {
|
||
\ 'command': ale#Escape('odd-dhall')
|
||
\ . ' --ascii'
|
||
\ . ' freeze'
|
||
\ . ' --all'
|
||
\ . ' --inplace %t',
|
||
\ 'read_temporary_file': 1,
|
||
\ }
|