1
0
Fork 0
mirror of synced 2024-06-29 20:11:09 -04:00
ultimate-vim/sources_non_forked/ale/test/test_puppet_path_detection.vader

23 lines
773 B
Plaintext
Raw Normal View History

2022-05-19 09:16:38 -04:00
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('test-files/puppet/old-style-module/manifests/init.pp')
AssertEqual
\ ale#path#Simplify(g:dir . '/test-files/puppet/old-style-module'),
\ ale_linters#puppet#languageserver#GetProjectRoot(bufnr(''))
Execute(new-style module should find its root correctly):
call ale#test#SetFilename('test-files/puppet/new-style-module/lib/puppet/types/exampletype.rb')
AssertEqual
\ ale#path#Simplify(g:dir . '/test-files/puppet/new-style-module'),
\ ale_linters#puppet#languageserver#GetProjectRoot(bufnr(''))