This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/test/test_tflint_config_detection.vader
2017-10-26 19:37:04 +01:00

18 lines
508 B
Text

Before:
call ale#test#SetDirectory('/testplugin/test')
runtime ale_linters/terraform/tflint.vim
After:
call ale#test#RestoreDirectory()
call ale#linter#Reset()
Execute(adjacent config file should be found):
call ale#test#SetFilename('tflint-test-files/foo/bar.tf')
AssertEqual
\ (
\ ale#Escape('tflint')
\ . ' --config '
\ . ale#Escape(ale#path#Winify(g:dir . '/tflint-test-files/foo/.tflint.hcl'))
\ . ' -f json'
\ ),
\ ale_linters#terraform#tflint#GetCommand(bufnr(''))