diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-07 13:13:52 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-18 18:01:41 -0400 |
commit | a5bde56b371e199e36840ceb4a27e0440cbad60d (patch) | |
tree | d1f2b6775c30e53fba69a6c493706b0708529168 /test/functional | |
parent | 70d4b31b834395fe36f4886e43b63fd4dc62ded1 (diff) | |
download | rneovim-a5bde56b371e199e36840ceb4a27e0440cbad60d.tar.gz rneovim-a5bde56b371e199e36840ceb4a27e0440cbad60d.tar.bz2 rneovim-a5bde56b371e199e36840ceb4a27e0440cbad60d.zip |
vim-patch:8.0.1554: custom plugins loaded with --clean
Problem: Custom plugins loaded with --clean.
Solution: Do not include the home directory in 'runtimepath'.
https://github.com/vim/vim/commit/072687032683b1994d25a114893d9a6f8bc36612
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/core/startup_spec.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index 3269fbc68d..394eb73187 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -3,6 +3,7 @@ local Screen = require('test.functional.ui.screen') local clear = helpers.clear local command = helpers.command +local ok = helpers.ok local eq = helpers.eq local matches = helpers.matches local eval = helpers.eval @@ -17,6 +18,7 @@ local rmdir = helpers.rmdir local sleep = helpers.sleep local iswin = helpers.iswin local write_file = helpers.write_file +local meths = helpers.meths describe('startup', function() before_each(function() @@ -357,3 +359,10 @@ describe('sysinit', function() eval('printf("loaded %d xdg %d vim %d", g:loaded, get(g:, "xdg", 0), get(g:, "vim", 0))')) end) end) + +describe('clean', function() + clear() + ok(string.match(meths.get_option('runtimepath'), funcs.stdpath('config')) ~= nil) + clear('--clean') + ok(string.match(meths.get_option('runtimepath'), funcs.stdpath('config')) == nil) +end) |