summaryrefslogtreecommitdiff
path: root/test/linter/test_terraform_ls.vader
diff options
context:
space:
mode:
authorHoracio Sanson <hsanson@gmail.com>2022-04-01 21:17:15 +0900
committerGitHub <noreply@github.com>2022-04-01 13:17:15 +0100
commit0f55d371e92160812ff0a57b5f48f2010a420f0c (patch)
tree5a291b2decb6fd3014126a468c005c2cbf524972 /test/linter/test_terraform_ls.vader
parente81f005c78193b9475b359751e9fae21f65c1c2b (diff)
downloadale-0f55d371e92160812ff0a57b5f48f2010a420f0c.zip
Add neovim 0.6 to run-tests (#3998)
* Update test scripts * Remove neovim 0.3 and 0.4 * Add neovim 0.6.1 Co-authored-by: Horacio Sanson <horacio@allm.inc> Co-authored-by: w0rp <devw0rp@gmail.com>
Diffstat (limited to 'test/linter/test_terraform_ls.vader')
-rw-r--r--test/linter/test_terraform_ls.vader21
1 files changed, 1 insertions, 20 deletions
diff --git a/test/linter/test_terraform_ls.vader b/test/linter/test_terraform_ls.vader
index 9f7d3450..983bc104 100644
--- a/test/linter/test_terraform_ls.vader
+++ b/test/linter/test_terraform_ls.vader
@@ -2,10 +2,6 @@ Before:
call ale#assert#SetUpLinterTest('terraform', 'terraform_ls')
After:
- if isdirectory(g:dir . '/.terraform')
- call delete(g:dir . '/.terraform', 'd')
- endif
-
unlet! b:ale_terraform_terraform_executable
unlet! b:ale_terraform_ls_executable
unlet! b:ale_terraform_ls_options
@@ -40,22 +36,7 @@ Execute(Should set custom options):
AssertLinter 'terraform-ls',
\ ale#Escape('terraform-ls') . ' serve --bar'
-Execute(Should return current directory if it contains .terraform directory):
- call mkdir(g:dir . '/.terraform')
- AssertLSPProject g:dir
-
Execute(Should return nearest directory with .terraform if found in parent directory):
call ale#test#SetFilename('../test-files/terraform/main.tf')
- let b:parent_dir = ale#path#Simplify(g:dir . '/..')
- let b:tf_dir = b:parent_dir . '/.terraform'
-
- if !isdirectory(b:tf_dir)
- call mkdir(b:tf_dir)
- endif
-
- AssertLSPProject b:parent_dir
-
- call delete(b:tf_dir, 'd')
- unlet!b:parent_dir
- unlet!b:tf_dir
+ AssertLSPProject ale#test#GetFilename('../test-files/terraform')