summaryrefslogtreecommitdiff
path: root/test/command_callback/test_terraform_terraform_command_callback.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/command_callback/test_terraform_terraform_command_callback.vader')
-rw-r--r--test/command_callback/test_terraform_terraform_command_callback.vader8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/command_callback/test_terraform_terraform_command_callback.vader b/test/command_callback/test_terraform_terraform_command_callback.vader
index fabd902d..25ca652a 100644
--- a/test/command_callback/test_terraform_terraform_command_callback.vader
+++ b/test/command_callback/test_terraform_terraform_command_callback.vader
@@ -6,4 +6,10 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The default command should be correct):
- AssertLinter 'terraform', ale#Escape('terraform') . ' fmt -no-color --check=true -'
+ AssertLinter 'terraform',
+ \ ale#Escape('terraform') . ' validate -no-color -json '
+
+Execute(The default command should be overriden):
+ let b:ale_terraform_terraform_executable = '/bin/other/terraform'
+ AssertLinter '/bin/other/terraform',
+ \ ale#Escape('/bin/other/terraform') . ' validate -no-color -json '