summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_htmlbeautifier_fixer_callback.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_htmlbeautifier_fixer_callback.vader b/test/fixers/test_htmlbeautifier_fixer_callback.vader
new file mode 100644
index 00000000..e54bab97
--- /dev/null
+++ b/test/fixers/test_htmlbeautifier_fixer_callback.vader
@@ -0,0 +1,19 @@
+Before:
+ call ale#assert#SetUpFixerTest('eruby', 'htmlbeautifier')
+
+After:
+ call ale#assert#TearDownFixerTest()
+
+Execute(The htmlbeautifier callback should return the correct default values):
+ AssertFixer {
+ \ 'command': ale#Escape('htmlbeautifier') . ' %t',
+ \ 'read_temporary_file': 1,
+ \}
+
+Execute(The htmlbeautifier callback should allow custom htmlbeautifier executables):
+ let g:ale_eruby_htmlbeautifier_executable = 'foo/bar'
+
+ AssertFixer {
+ \ 'command': ale#Escape('foo/bar') . ' %t',
+ \ 'read_temporary_file': 1,
+ \}