summaryrefslogtreecommitdiff
path: root/test/command_callback/test_rust_rls_callbacks.vader
blob: a710161db04deddd66fcc98f359e4fc1f0bb5be8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Before:
  call ale#assert#SetUpLinterTest('rust', 'rls')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default executable path should be correct):
  AssertLinter 'rls', ale#Escape('rls') . ' +' . ale#Escape('nightly')

Execute(The toolchain should be configurable):
  let g:ale_rust_rls_toolchain = 'stable'

  AssertLinter 'rls', ale#Escape('rls') . ' +' . ale#Escape('stable')

Execute(The toolchain should be ommitted if not given):
  let g:ale_rust_rls_toolchain = ''

  AssertLinter 'rls', ale#Escape('rls')

Execute(The project root should be detected correctly):
  AssertLSPProject ''

  call ale#test#SetFilename('rust-rls-project/test.rs')

  AssertLSPProject ale#path#Simplify(g:dir . '/rust-rls-project')