summaryrefslogtreecommitdiff
path: root/test/command_callback
diff options
context:
space:
mode:
authorSamuel Roeca <samuel.roeca@gmail.com>2019-09-12 16:22:47 -0400
committerw0rp <w0rp@users.noreply.github.com>2019-09-12 21:22:47 +0100
commit05ba522c9af59aaf0d34aff2674c2ac273dc1a88 (patch)
tree3aeb4ee91be58cfb99b36e6d85e4a8f46a381b5a /test/command_callback
parent34f2943fddddb8943456ec8defb2080592845ec7 (diff)
downloadale-05ba522c9af59aaf0d34aff2674c2ac273dc1a88.zip
languagetools: stop auto-appending --autoDetect (#2616)
Options are now configurable for languagetools, and `--autoDetect` can be removed by changing the options.
Diffstat (limited to 'test/command_callback')
-rw-r--r--test/command_callback/test_languagetool_command_callback.vader9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/command_callback/test_languagetool_command_callback.vader b/test/command_callback/test_languagetool_command_callback.vader
index a79662b9..ff6b2064 100644
--- a/test/command_callback/test_languagetool_command_callback.vader
+++ b/test/command_callback/test_languagetool_command_callback.vader
@@ -12,4 +12,11 @@ Execute(Should be able to set a custom executable):
let g:ale_languagetool_executable = 'foobar'
AssertLinter 'foobar' , ale#Escape('foobar')
- \ . ' --autoDetect %s'
+ \ . ' --autoDetect %s'
+
+Execute(Should be able to include custom languagetool options):
+ let g:ale_languagetool_options = '--language en'
+
+ " is now 'foobar' based on above global
+ AssertLinter 'foobar', ale#Escape('foobar')
+ \ . ' --language en %s'