diff options
author | Michael Ennen <brcolow@users.noreply.github.com> | 2016-11-29 15:19:25 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-11-29 23:19:25 +0100 |
commit | 783c9aac8ee300ba3e9850de26b523554ceab495 (patch) | |
tree | 894e83e342ec0a74fccbe818cf48e42c0e2a3070 /test/functional/legacy/packadd_spec.lua | |
parent | 3979c6cbed6399934a06da35881e4d351c588af0 (diff) | |
download | rneovim-783c9aac8ee300ba3e9850de26b523554ceab495.tar.gz rneovim-783c9aac8ee300ba3e9850de26b523554ceab495.tar.bz2 rneovim-783c9aac8ee300ba3e9850de26b523554ceab495.zip |
vim-patch:7.4.1699 (#5660)
Problem: :packadd does not work the same when used early or late.
Solution: Always load plugins matching "plugin/**/*.vim".
https://github.com/vim/vim/commit/71fb0c146bef08dc276fc5793bd47366e6e0f32a
Diffstat (limited to 'test/functional/legacy/packadd_spec.lua')
-rw-r--r-- | test/functional/legacy/packadd_spec.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua index 68bdbf5257..2d851819e3 100644 --- a/test/functional/legacy/packadd_spec.lua +++ b/test/functional/legacy/packadd_spec.lua @@ -27,7 +27,7 @@ describe('packadd', function() endfunc func Test_packadd() - call mkdir(s:plugdir . '/plugin', 'p') + call mkdir(s:plugdir . '/plugin/also', 'p') call mkdir(s:plugdir . '/ftdetect', 'p') call mkdir(s:plugdir . '/after', 'p') set rtp& @@ -38,6 +38,10 @@ describe('packadd', function() call setline(1, 'let g:plugin_works = 42') wq + exe 'split ' . s:plugdir . '/plugin/also/loaded.vim' + call setline(1, 'let g:plugin_also_works = 77') + wq + exe 'split ' . s:plugdir . '/ftdetect/test.vim' call setline(1, 'let g:ftdetect_works = 17') wq @@ -45,6 +49,7 @@ describe('packadd', function() packadd mytest call assert_true(42, g:plugin_works) + call assert_equal(77, g:plugin_also_works) call assert_true(17, g:ftdetect_works) call assert_true(len(&rtp) > len(rtp)) call assert_true(&rtp =~ (s:plugdir . '\($\|,\)')) |