diff options
author | Ryan <RyanSquared@users.noreply.github.com> | 2017-06-14 03:35:11 -0500 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-06-14 09:35:11 +0100 |
commit | e8cc40b13985e17320437debca0426a1129e0f54 (patch) | |
tree | 8905fe359bfd7185af55e56aded9e4c65a2da200 /test/command_callback/test_fusionlint_command_callback.vader | |
parent | ba83c476cde8bceef33bf959fa6d9d3334f5d2fc (diff) | |
download | ale-e8cc40b13985e17320437debca0426a1129e0f54.zip |
Add fusion-lint, documentation, and tests (#648)
* Add `fusion-lint` for first FusionScript linter
* Add documentation over `fusion-lint`
* Add tests for `fusion-lint` command callback
Diffstat (limited to 'test/command_callback/test_fusionlint_command_callback.vader')
-rw-r--r-- | test/command_callback/test_fusionlint_command_callback.vader | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/command_callback/test_fusionlint_command_callback.vader b/test/command_callback/test_fusionlint_command_callback.vader new file mode 100644 index 00000000..5398066c --- /dev/null +++ b/test/command_callback/test_fusionlint_command_callback.vader @@ -0,0 +1,24 @@ +Before: + runtime ale_linters/fuse/fusionlint.vim + +After: + call ale#linter#Reset() + let g:ale_fuse_fusionlint_options = '' + let g:ale_fuse_fusionlint_executable = 'fusion-lint' + +Execute(The fuse fusionlint command callback should return the correct default string): + AssertEqual '''fusion-lint'' --filename %s -i', + \ join(split(ale_linters#fuse#fusionlint#GetCommand(1))) + +Execute(The fuse fusionlint command callback should let you set options): + let g:ale_fuse_fusionlint_options = '--example-option argument' + + AssertEqual '''fusion-lint'' --example-option argument --filename %s -i', + \ join(split(ale_linters#fuse#fusionlint#GetCommand(1))) + +Execute(The fusionlint executable should be configurable): + let g:ale_fuse_fusionlint_executable = 'util/linter.fuse' + + AssertEqual 'util/linter.fuse', ale_linters#fuse#fusionlint#GetExecutable(1) + AssertEqual '''util/linter.fuse'' --filename %s -i', + \ join(split(ale_linters#fuse#fusionlint#GetCommand(1))) |