install.fairie/dotfiles/.vim/plugged/ale/test/test_puppet_path_detection.vader
Git E2E Dev Test Username e149692cc9 git subrepo clone https://github.com/dense-analysis/ale.git ./dotfiles/.vim/plugged/ale
subrepo:
  subdir:   "dotfiles/.vim/plugged/ale"
  merged:   "e4b205440"
upstream:
  origin:   "https://github.com/dense-analysis/ale.git"
  branch:   "master"
  commit:   "e4b205440"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:37:09 -04:00

22 lines
773 B
Text

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(''))