blob: 5542a9d8947a1756f97738b936bb71f3cc66296e (
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
26
27
28
29
|
Before:
call ale#test#SetDirectory('/testplugin/test')
runtime ale_linters/java/javac.vim
Save $PATH
let $PATH = ale#path#Simplify(g:dir . '/ant-test-files/bin')
let g:valid_project = 'ant-test-files/ant-project'
let g:invalid_project = 'ant-test-files/non-ant-project'
let g:command_tail = ' classpath' . ' -S' . ' -q'
After:
Restore
unlet! g:command_tail
unlet! g:valid_project
unlet! g:invalid_project
call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(Should return `cd '[dir]' && 'ant' classpath -S -q`):
call ale#test#SetFilename(valid_project . '/Main.java')
AssertEqual
\ ale#path#CdString(ale#path#Simplify(g:dir . '/ant-test-files/ant-project'))
\ . ale#Escape('ant')
\ . g:command_tail,
\ ale#ant#BuildClasspathCommand(bufnr(''))
|