summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArash Mousavi <mousavi.arash@gmail.com>2023-07-24 13:38:52 +0100
committerGitHub <noreply@github.com>2023-07-24 21:38:52 +0900
commit93a4f70414cf6b632083127998ad5c80b1615e2e (patch)
treed0a7559b15d6c9920b9f60a4012ee4ee01943737 /test
parent3d107703873a67e6645b5c7ed0ccb273ac0596b2 (diff)
downloadale-93a4f70414cf6b632083127998ad5c80b1615e2e.zip
Add erb-formatter support (#4546)
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_erbformatter_fixer_callback.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_erbformatter_fixer_callback.vader b/test/fixers/test_erbformatter_fixer_callback.vader
new file mode 100644
index 00000000..417a64e8
--- /dev/null
+++ b/test/fixers/test_erbformatter_fixer_callback.vader
@@ -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,
+ \}