summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2020-12-16 09:48:35 +0900
committerGitHub <noreply@github.com>2020-12-16 09:48:35 +0900
commitf996ede5999c99b1b3e3cecc02dbd06cb286d3ff (patch)
tree3c55bcdb2395e362c06e95300354d5305a9e0074 /test
parent03b6978a270107b670b0363d50f3eed4b365ba26 (diff)
parentcafe8621e2e94c8eff37a430fdccb0b87788620a (diff)
downloadale-f996ede5999c99b1b3e3cecc02dbd06cb286d3ff.zip
Merge pull request #3403 from will/sorbetwatchman
Add Ruby sorbet option to enable watchman
Diffstat (limited to 'test')
-rw-r--r--test/command_callback/test_sorbet_command_callback.vader7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/command_callback/test_sorbet_command_callback.vader b/test/command_callback/test_sorbet_command_callback.vader
index b46e90a4..fe758635 100644
--- a/test/command_callback/test_sorbet_command_callback.vader
+++ b/test/command_callback/test_sorbet_command_callback.vader
@@ -5,6 +5,7 @@ Before:
let g:ale_ruby_sorbet_executable = 'srb'
let g:ale_ruby_sorbet_options = ''
+ let g:ale_ruby_sorbet_enable_watchman = 0
After:
call ale#assert#TearDownLinterTest()
@@ -13,6 +14,12 @@ Execute(Executable should default to srb):
AssertLinter 'srb', ale#Escape('srb')
\ . ' tc --lsp --disable-watchman'
+Execute(Able to enable watchman):
+ let g:ale_ruby_sorbet_enable_watchman = 1
+
+ AssertLinter 'srb', ale#Escape('srb')
+ \ . ' tc --lsp'
+
Execute(Should be able to set a custom executable):
let g:ale_ruby_sorbet_executable = 'bin/srb'