summaryrefslogtreecommitdiff
path: root/test/linter/test_puppet_languageserver.vader
blob: 3fb458ab6de03daa5ff6ba28ef65aba329192704 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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(''))