summaryrefslogtreecommitdiff
path: root/test/test_ale_complete_command.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-03-08 21:32:05 +0000
committerw0rp <devw0rp@gmail.com>2019-03-08 21:32:05 +0000
commit413529f603547bad184358db06f8388047a5c9aa (patch)
treec31cdb07b568077bcbc11c8c7fad81d2699a60db /test/test_ale_complete_command.vader
parentbe2c0c3af5e9685b3e1235fa062cb148d740e830 (diff)
downloadale-413529f603547bad184358db06f8388047a5c9aa.zip
Fix #2326 - ALEComplete no longer replaces completeopt
Diffstat (limited to 'test/test_ale_complete_command.vader')
-rw-r--r--test/test_ale_complete_command.vader26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/test_ale_complete_command.vader b/test/test_ale_complete_command.vader
deleted file mode 100644
index 11f781c2..00000000
--- a/test/test_ale_complete_command.vader
+++ /dev/null
@@ -1,26 +0,0 @@
-Before:
- function! MockAlwaysGetCompletions() abort
- let g:get_completions_called = 0
- let g:always_get_completions_argument = -1
-
- function! ale#completion#AlwaysGetCompletions(need_prefix) abort
- let g:get_completions_called = 1
- let g:always_get_completions_argument = a:need_prefix
- endfunction
- endfunction
-
- call MockAlwaysGetCompletions()
-
-After:
- unlet! g:get_completions_called
- unlet! g:always_get_completions_argument
- delfunction MockAlwaysGetCompletions
- delfunction ale#completion#AlwaysGetCompletions
-
- runtime autoload/ale/completion.vim
-
-Execute(ale#completion#AlwaysGetCompletions should be called when ALEComplete is executed):
- AssertEqual 0, g:get_completions_called
- ALEComplete
- AssertEqual 1, g:get_completions_called
- AssertEqual 0, g:always_get_completions_argument