diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-10-31 16:19:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-31 16:19:30 +0100 |
commit | 4445e0230bc1aa5c9c91c53ddf6526813d9f1b8a (patch) | |
tree | 16d69603b16897d2f8d9387d83c233a5b543b0c9 /test | |
parent | 346227e3ad8f2855364f7e40f803b85be237be42 (diff) | |
parent | e6b8d4f67b02d6a908de96fc5142f4ee2ab821d6 (diff) | |
download | rneovim-4445e0230bc1aa5c9c91c53ddf6526813d9f1b8a.tar.gz rneovim-4445e0230bc1aa5c9c91c53ddf6526813d9f1b8a.tar.bz2 rneovim-4445e0230bc1aa5c9c91c53ddf6526813d9f1b8a.zip |
Merge pull request #16188 from bfredl/packentry
fix(runtime): fix missing packpath entries
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/core/startup_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/core/startup_spec.lua b/test/functional/core/startup_spec.lua index cc6e2c8067..d1dce0f8da 100644 --- a/test/functional/core/startup_spec.lua +++ b/test/functional/core/startup_spec.lua @@ -414,6 +414,11 @@ describe('startup', function() eq({'ordinary', 'funky!', 'FANCY', 'mittel', 'FANCY after', 'ordinary after'}, exec_lua [[ return _G.test_loadorder ]]) eq({'ordinary', 'funky!', 'mittel', 'ordinary after'}, exec_lua [[ return _G.nested_order ]]) end) + + it("handles the correct order when prepending packpath", function() + clear{args={'--cmd', 'set packpath^=test/functional/fixtures', '--cmd', [[ lua _G.test_loadorder = {} vim.cmd "runtime! filen.lua" ]]}, env={XDG_CONFIG_HOME='test/functional/fixtures/'}} + eq({'ordinary', 'FANCY', 'FANCY after', 'ordinary after'}, exec_lua [[ return _G.test_loadorder ]]) + end) end) describe('sysinit', function() |