diff options
| author | phanium <91544758+phanen@users.noreply.github.com> | 2025-03-24 07:30:08 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-23 16:30:08 -0700 |
| commit | c98260822699bf622b14caffc908a47039deca51 (patch) | |
| tree | b9c33dee3322b54f17622c74a66849ae6b86158e /test/functional/plugin | |
| parent | 958df63606687fff6f805255ff3848dd34f33082 (diff) | |
| download | rneovim-c98260822699bf622b14caffc908a47039deca51.tar.gz rneovim-c98260822699bf622b14caffc908a47039deca51.tar.bz2 rneovim-c98260822699bf622b14caffc908a47039deca51.zip | |
test(checkhealth): nested path 'runtimepath' #33034
Diffstat (limited to 'test/functional/plugin')
| -rw-r--r-- | test/functional/plugin/health_spec.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/plugin/health_spec.lua b/test/functional/plugin/health_spec.lua index 1f754b9685..3632774bff 100644 --- a/test/functional/plugin/health_spec.lua +++ b/test/functional/plugin/health_spec.lua @@ -224,6 +224,24 @@ describe('vim.health', function() - OK everything is ok ]]) end) + + it('&rtp can contain nested path (by packadd)', function() + -- re-add to ensure this appears before new nested rtp + command([[set runtimepath-=test/functional/fixtures]]) + command([[set runtimepath+=test/functional/fixtures]]) + command('set packpath+=test/functional/fixtures') + -- set rtp+=test/functional/fixtures/pack/foo/opt/healthy + command('packadd healthy') + command('checkhealth nest') + n.expect([[ + + ============================================================================== + nest: require("nest.health").check() + + healthy pack ~ + - OK healthy ok + ]]) + end) end) end) |