aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/startup_spec.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2021-10-31 10:20:35 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2021-10-31 15:37:09 +0100
commite6b8d4f67b02d6a908de96fc5142f4ee2ab821d6 (patch)
tree16d69603b16897d2f8d9387d83c233a5b543b0c9 /test/functional/core/startup_spec.lua
parent346227e3ad8f2855364f7e40f803b85be237be42 (diff)
downloadrneovim-e6b8d4f67b02d6a908de96fc5142f4ee2ab821d6.tar.gz
rneovim-e6b8d4f67b02d6a908de96fc5142f4ee2ab821d6.tar.bz2
rneovim-e6b8d4f67b02d6a908de96fc5142f4ee2ab821d6.zip
fix(runtime): fix missing packpath entries
Diffstat (limited to 'test/functional/core/startup_spec.lua')
-rw-r--r--test/functional/core/startup_spec.lua5
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()