aboutsummaryrefslogtreecommitdiff
path: root/test/functional/plugin/health_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-11-10 22:37:54 +0100
committerGitHub <noreply@github.com>2017-11-10 22:37:54 +0100
commitf5d4da0144c97ba13f530ea7dbd50f7b9768cb34 (patch)
tree02c8c2cb07a58db80d2aec6be5655b33b25abe6d /test/functional/plugin/health_spec.lua
parent314ff440f7130c39d7990295535a8cfde92de4ba (diff)
downloadrneovim-f5d4da0144c97ba13f530ea7dbd50f7b9768cb34.tar.gz
rneovim-f5d4da0144c97ba13f530ea7dbd50f7b9768cb34.tar.bz2
rneovim-f5d4da0144c97ba13f530ea7dbd50f7b9768cb34.zip
:checkhealth : validate 'runtimepath' (#7526)
Diffstat (limited to 'test/functional/plugin/health_spec.lua')
-rw-r--r--test/functional/plugin/health_spec.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua
index b5374210e6..8ee0f258d0 100644
--- a/test/functional/plugin/health_spec.lua
+++ b/test/functional/plugin/health_spec.lua
@@ -16,6 +16,13 @@ describe(':checkhealth', function()
eq(false, status)
eq('Invalid $VIMRUNTIME: bogus', string.match(err, 'Invalid.*'))
end)
+ it("detects invalid 'runtimepath'", function()
+ clear()
+ command('set runtimepath=bogus')
+ local status, err = pcall(command, 'checkhealth')
+ eq(false, status)
+ eq("Invalid 'runtimepath'", string.match(err, 'Invalid.*'))
+ end)
it("detects invalid $VIM", function()
clear()
-- Do this after startup, otherwise it just breaks $VIMRUNTIME.