summaryrefslogtreecommitdiff
path: root/test/command_callback/test_languagetool_command_callback.vader
diff options
context:
space:
mode:
authorVincent Dahmen <vincent.dahmen@gmail.com>2019-03-09 14:55:54 +0100
committerw0rp <w0rp@users.noreply.github.com>2019-03-09 13:55:54 +0000
commit7eae06d3f33b8c3cb490a3c08986cc8db9f78843 (patch)
tree1d8046dfaf7449a85e8372d6ed4070b650ba769a /test/command_callback/test_languagetool_command_callback.vader
parentfd31987f236bfbdf56e9cbaa35a91fb2b2fcc344 (diff)
downloadale-7eae06d3f33b8c3cb490a3c08986cc8db9f78843.zip
linter/markdown: adds support for languatool (#2155)
Diffstat (limited to 'test/command_callback/test_languagetool_command_callback.vader')
-rw-r--r--test/command_callback/test_languagetool_command_callback.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command_callback/test_languagetool_command_callback.vader b/test/command_callback/test_languagetool_command_callback.vader
new file mode 100644
index 00000000..1b5f0e00
--- /dev/null
+++ b/test/command_callback/test_languagetool_command_callback.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('text', 'languagetool')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The default command should be correct):
+ AssertLinter 'languagetool', ale#Escape('languagetool')
+ \ . ' --autoDetect '
+
+Execute(Should be able to set a custom executable):
+ let g:ale_languagetool_executable = 'foobar'
+
+ AssertLinter 'foobar' , ale#Escape('foobar')
+ \ . ' --autoDetect '