mirror of
https://github.com/dense-analysis/ale
synced 2024-12-23 14:45:29 +00:00
23 lines
773 B
Plaintext
23 lines
773 B
Plaintext
Before:
|
|
call ale#test#SetDirectory('/testplugin/test')
|
|
|
|
runtime ale_linters/puppet/languageserver.vim
|
|
|
|
After:
|
|
call ale#test#RestoreDirectory()
|
|
call ale#linter#Reset()
|
|
|
|
Execute(old-style module should find its root correctly):
|
|
call ale#test#SetFilename('puppet-test-files/old-style-module/manifests/init.pp')
|
|
|
|
AssertEqual
|
|
\ ale#path#Simplify(g:dir . '/puppet-test-files/old-style-module'),
|
|
\ ale_linters#puppet#languageserver#GetProjectRoot(bufnr(''))
|
|
|
|
Execute(new-style module should find its root correctly):
|
|
call ale#test#SetFilename('puppet-test-files/new-style-module/lib/puppet/types/exampletype.rb')
|
|
|
|
AssertEqual
|
|
\ ale#path#Simplify(g:dir . '/puppet-test-files/new-style-module'),
|
|
\ ale_linters#puppet#languageserver#GetProjectRoot(bufnr(''))
|