]> git.madduck.net Git - etc/vim.git/blob - test/linter/test_sorbet.vader

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Squashed '.vim/bundle/ale/' content from commit 22185c4c
[etc/vim.git] / test / linter / test_sorbet.vader
1
2 Before:
3   call ale#assert#SetUpLinterTest('ruby', 'sorbet')
4   call ale#test#SetFilename('dummy.rb')
5
6   let g:ale_ruby_sorbet_executable = 'srb'
7   let g:ale_ruby_sorbet_options = ''
8   let g:ale_ruby_sorbet_enable_watchman = 0
9
10 After:
11   call ale#assert#TearDownLinterTest()
12
13 Execute(Executable should default to srb):
14   AssertLinter 'srb', ale#Escape('srb')
15   \   . ' tc --lsp --disable-watchman'
16
17 Execute(Able to enable watchman):
18   let g:ale_ruby_sorbet_enable_watchman = 1
19
20   AssertLinter 'srb', ale#Escape('srb')
21   \   . ' tc --lsp'
22
23 Execute(Should be able to set a custom executable):
24   let g:ale_ruby_sorbet_executable = 'bin/srb'
25
26   AssertLinter 'bin/srb' , ale#Escape('bin/srb')
27   \   . ' tc --lsp --disable-watchman'
28
29 Execute(Setting bundle appends 'exec srb tc'):
30   let g:ale_ruby_sorbet_executable = 'path to/bundle'
31
32   AssertLinter 'path to/bundle', ale#Escape('path to/bundle')
33   \   . ' exec srb'
34   \   . ' tc --lsp --disable-watchman'