mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-09 04:52:29 +08:00
#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.
This commit is contained in:
19
test/linter/test_puppet_languageserver.vader
Normal file
19
test/linter/test_puppet_languageserver.vader
Normal file
@@ -0,0 +1,19 @@
|
||||
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(''))
|
||||
Reference in New Issue
Block a user