Files
ale/test/linter/test_puppet_languageserver.vader
w0rp bf55175b69 #4454 Clean up root test directory tests
Combine cases into smaller tests of tests and remove tests we no longer
need. Linter tests have been moved to where they should be.
2023-09-08 01:00:35 +01:00

20 lines
730 B
Plaintext

Before:
call ale#assert#SetUpLinterTest('puppet', 'languageserver')
After:
call ale#assert#TearDownLinterTest()
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(''))