diff options
author | Kevin Tindall <kevinkjt2000@gmail.com> | 2018-02-10 13:04:43 -0600 |
---|---|---|
committer | Kevin Tindall <kevinkjt2000@gmail.com> | 2018-02-10 13:17:53 -0600 |
commit | 716b46e10d2abe54daa09e876d4b7a6b56024ad0 (patch) | |
tree | ed72234ef8237e68c92e018b5df13891a7a0a0d3 /test/command_callback/test_pony_ponyc_command_callbacks.vader | |
parent | a3329ef3fc44a04a2617941eb46deef6c184f4af (diff) | |
download | ale-716b46e10d2abe54daa09e876d4b7a6b56024ad0.zip |
functional pony linter
Diffstat (limited to 'test/command_callback/test_pony_ponyc_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_pony_ponyc_command_callbacks.vader | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/command_callback/test_pony_ponyc_command_callbacks.vader b/test/command_callback/test_pony_ponyc_command_callbacks.vader new file mode 100644 index 00000000..e48346e8 --- /dev/null +++ b/test/command_callback/test_pony_ponyc_command_callbacks.vader @@ -0,0 +1,23 @@ +Before: + Save g:ale_pony_ponyc_options + + unlet! g:ale_pony_ponyc_options + unlet! b:ale_pony_ponyc_options + + runtime ale_linters/pony/ponyc.vim + +After: + Restore + unlet! b:ale_pony_ponyc_options + call ale#linter#Reset() + +Execute(The options should be used in the command): + AssertEqual + \ 'ponyc --pass paint', + \ ale_linters#pony#ponyc#GetCommand(bufnr('')) + + let b:ale_pony_ponyc_options = 'foobar' + + AssertEqual + \ 'ponyc foobar', + \ ale_linters#pony#ponyc#GetCommand(bufnr('')) |