ale/test/fixers/test_erbformatter_fixer_cal...

20 lines
549 B
Plaintext
Raw Permalink Normal View History

2023-07-24 12:38:52 +00:00
Before:
call ale#assert#SetUpFixerTest('eruby', 'erb-formatter')
After:
call ale#assert#TearDownFixerTest()
Execute(The erb-formatter callback should return the correct default values):
AssertFixer {
\ 'command': ale#Escape('erb-formatter') . ' -w %t',
\ 'read_temporary_file': 1,
\}
Execute(The erb-formatter callback should allow custom erb-formatter executables):
let g:ale_eruby_erbformatter_executable = 'foo/bar'
AssertFixer {
\ 'command': ale#Escape('foo/bar') . ' -w %t',
\ 'read_temporary_file': 1,
\}