Add erb-formatter support (#4546)

This commit is contained in:
Arash Mousavi authored and GitHub committed 2023-07-24 21:38:52 +09:00
1 parent 3d10770387
commit 93a4f70414
7 files changed
+54 -1

No files matched your search

@@ -0,0 +1,19 @@
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,
\}