summaryrefslogtreecommitdiff
path: root/test/linter/test_ibm_openapi_validator.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_ibm_openapi_validator.vader')
-rw-r--r--test/linter/test_ibm_openapi_validator.vader15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/linter/test_ibm_openapi_validator.vader b/test/linter/test_ibm_openapi_validator.vader
new file mode 100644
index 00000000..3484cc09
--- /dev/null
+++ b/test/linter/test_ibm_openapi_validator.vader
@@ -0,0 +1,15 @@
+Before:
+ call ale#assert#SetUpLinterTest('openapi', 'ibm_validator')
+
+After:
+ call ale#assert#TearDownLinterTest()
+
+Execute(The yaml ibm-openapi-validator command callback should return the correct default string):
+ AssertLinter 'lint-openapi', ale#Escape('lint-openapi') . ' %t'
+
+Execute(The yaml ibm-openapi-validator command callback should be configurable):
+ let g:ale_openapi_ibm_validator_executable = '~/.local/bin/lint-openapi'
+ let g:ale_openapi_ibm_validator_options = '-c ~/.config'
+
+ AssertLinter '~/.local/bin/lint-openapi', ale#Escape('~/.local/bin/lint-openapi')
+ \ . ' -c ~/.config %t'