diff options
author | Horacio Sanson <hsanson@gmail.com> | 2021-01-23 00:13:40 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-23 00:13:40 +0900 |
commit | db816b5c3fcf032e8053d23e6d48447eb9b08bb6 (patch) | |
tree | 970d8a2062372ee662b0e25c7538f4fc1135fcce /test/command_callback | |
parent | a1e6df987c28dd3e0efb7422f4ad85ee3bb3bebc (diff) | |
parent | 9bc4b468c20e91350cf1a6d3739f91f504e230ed (diff) | |
download | ale-db816b5c3fcf032e8053d23e6d48447eb9b08bb6.zip |
Merge pull request #2782 from hsanson/2777-add-ibm-openapi-validator
Fix 2777 - Add IBM openapi validator
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_ibm_openapi_validator_command_callback.vader | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/command_callback/test_ibm_openapi_validator_command_callback.vader b/test/command_callback/test_ibm_openapi_validator_command_callback.vader new file mode 100644 index 00000000..3484cc09 --- /dev/null +++ b/test/command_callback/test_ibm_openapi_validator_command_callback.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' |