aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/packadd_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-07-08 00:05:35 -0400
committerJames McCoy <jamessan@jamessan.com>2016-07-08 01:45:21 -0400
commit520a4f06e20c3917e75e3a413a290d9141cb0a0c (patch)
tree10a25121e60a970da9bc9e7bf7471e1856be8f94 /test/functional/legacy/packadd_spec.lua
parente686b613ecd349265e17d9c1f481cafac4935aef (diff)
downloadrneovim-520a4f06e20c3917e75e3a413a290d9141cb0a0c.tar.gz
rneovim-520a4f06e20c3917e75e3a413a290d9141cb0a0c.tar.bz2
rneovim-520a4f06e20c3917e75e3a413a290d9141cb0a0c.zip
vim-patch:7.4.1840
Problem: When using packages an "after" directory cannot be used. Solution: Add the "after" directory of the package to 'runtimepath' if it exists. https://github.com/vim/vim/commit/a57024453115592b8847af40ddd965a33898e390
Diffstat (limited to 'test/functional/legacy/packadd_spec.lua')
-rw-r--r--test/functional/legacy/packadd_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua
index 8c680f24b4..b2ed39f288 100644
--- a/test/functional/legacy/packadd_spec.lua
+++ b/test/functional/legacy/packadd_spec.lua
@@ -27,6 +27,7 @@ describe('packadd', function()
func Test_packadd()
call mkdir(s:plugdir . '/plugin', 'p')
call mkdir(s:plugdir . '/ftdetect', 'p')
+ call mkdir(s:plugdir . '/after', 'p')
set rtp&
let rtp = &rtp
filetype on
@@ -45,6 +46,7 @@ describe('packadd', function()
call assert_true(17, g:ftdetect_works)
call assert_true(len(&rtp) > len(rtp))
call assert_true(&rtp =~ (s:plugdir . '\($\|,\)'))
+ call assert_true(&rtp =~ (s:plugdir . '/after$'))
" Check exception
call assert_fails("packadd directorynotfound", 'E919:')