aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/health_spec.lua
diff options
context:
space:
mode:
authorMarco Hinz <mh.codebro@gmail.com>2018-01-18 15:54:25 +0100
committerMarco Hinz <mh.codebro@gmail.com>2018-01-18 22:47:37 +0100
commit72a7a884b4a5f1642726403a3cc997d82bb616f4 (patch)
tree9ef4205b997a3e42530626befe3b6663020a2f77 /test/functional/plugin/health_spec.lua
parent6acbd76b004990701d9f4c29d9974b0a95e96cac (diff)
downloadrneovim-72a7a884b4a5f1642726403a3cc997d82bb616f4.tar.gz
rneovim-72a7a884b4a5f1642726403a3cc997d82bb616f4.tar.bz2
rneovim-72a7a884b4a5f1642726403a3cc997d82bb616f4.zip
tests: :checkhealth completion
Diffstat (limited to 'test/functional/plugin/health_spec.lua')
-rw-r--r--test/functional/plugin/health_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index 8ee0f258d0..f2d5e433db 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -6,6 +6,7 @@ local clear = helpers.clear
local curbuf_contents = helpers.curbuf_contents
local command = helpers.command
local eq = helpers.eq
+local getcompletion = helpers.funcs.getcompletion
describe(':checkhealth', function()
it("detects invalid $VIMRUNTIME", function()
@@ -31,6 +32,11 @@ describe(':checkhealth', function()
eq("ERROR: $VIM is invalid: zub",
string.match(curbuf_contents(), "ERROR: $VIM .* zub"))
end)
+ it('completions can be listed via getcompletion()', function()
+ clear()
+ eq('nvim', getcompletion('nvim', 'checkhealth')[1])
+ eq('provider', getcompletion('prov', 'checkhealth')[1])
+ end)
end)
describe('health.vim', function()