mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-09 11:11:32 +08:00
Add erb-formatter support (#4546)
This commit is contained in:
19
test/fixers/test_erbformatter_fixer_callback.vader
Normal file
19
test/fixers/test_erbformatter_fixer_callback.vader
Normal file
@@ -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,
|
||||
\}
|
||||
Reference in New Issue
Block a user