summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2017-07-03 16:51:34 +0100
committerw0rp <devw0rp@gmail.com>2017-07-03 16:51:34 +0100
commit160b9548eec13b3eb5ffb488a15964e079cb3ca0 (patch)
treebd6d125ea5e9445cc12bd1d503739b72bb4d480c /test
parentfd6f05c9ea7e3ff0ce7a86354b170e954e2e05b6 (diff)
downloadale-160b9548eec13b3eb5ffb488a15964e079cb3ca0.zip
Add a function for fixing the alignment of Vim help tags
Diffstat (limited to 'test')
-rw-r--r--test/fixers/test_vim_help_tags_alignment_fixer.vader19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/fixers/test_vim_help_tags_alignment_fixer.vader b/test/fixers/test_vim_help_tags_alignment_fixer.vader
new file mode 100644
index 00000000..7e18a771
--- /dev/null
+++ b/test/fixers/test_vim_help_tags_alignment_fixer.vader
@@ -0,0 +1,19 @@
+Before:
+ Save g:ale_fixers
+
+After:
+ Restore
+
+Given help(A vim help file with badly aligned tags):
+ foo *foo*
+ bar *bar*
+ baz *bar*
+
+Execute(Tags should be aligned at the right margin):
+ let g:ale_fixers = {'help': ['align_help_tags']}
+ ALEFix
+
+Expect help(Tags should be aligned):
+ foo *foo*
+ bar *bar*
+ baz *bar*