aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/packadd_spec.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2016-06-20 21:04:08 -0400
committerJames McCoy <jamessan@jamessan.com>2016-07-08 01:43:37 -0400
commit55dcf0918c364dd58e700cde5f2efbf7da4b3051 (patch)
tree7849ba89df702346cce1b31ca756eaa2540a8083 /test/functional/legacy/packadd_spec.lua
parent26f74fdf61827f5afc6fe4e90b9e9497264cb039 (diff)
downloadrneovim-55dcf0918c364dd58e700cde5f2efbf7da4b3051.tar.gz
rneovim-55dcf0918c364dd58e700cde5f2efbf7da4b3051.tar.bz2
rneovim-55dcf0918c364dd58e700cde5f2efbf7da4b3051.zip
vim-patch:7.4.1551
Problem: Cannot generate help tags in all doc directories. Solution: Make ":helptags ALL" work. https://github.com/vim/vim/commit/6bef5306e4f2cacb3a93667992c2312d4b293c9d
Diffstat (limited to 'test/functional/legacy/packadd_spec.lua')
-rw-r--r--test/functional/legacy/packadd_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/legacy/packadd_spec.lua b/test/functional/legacy/packadd_spec.lua
index 5006981f8f..296ec315a7 100644
--- a/test/functional/legacy/packadd_spec.lua
+++ b/test/functional/legacy/packadd_spec.lua
@@ -90,6 +90,23 @@ describe('packadd', function()
packloadall!
call assert_equal(4321, g:plugin_bar_number)
endfunc
+
+ func Test_helptags()
+ let docdir1 = &packpath . '/pack/mine/start/foo/doc'
+ let docdir2 = &packpath . '/pack/mine/start/bar/doc'
+ call mkdir(docdir1, 'p')
+ call mkdir(docdir2, 'p')
+ call writefile(['look here: *look-here*'], docdir1 . '/bar.txt')
+ call writefile(['look away: *look-away*'], docdir2 . '/foo.txt')
+ exe 'set rtp=' . &packpath . '/pack/mine/start/foo,' . &packpath . '/pack/mine/start/bar'
+
+ helptags ALL
+
+ let tags1 = readfile(docdir1 . '/tags')
+ call assert_true(tags1[0] =~ 'look-here')
+ let tags2 = readfile(docdir2 . '/tags')
+ call assert_true(tags2[0] =~ 'look-away')
+ endfunc
]=])
call('SetUp')
end)
@@ -113,6 +130,11 @@ describe('packadd', function()
expected_empty()
end)
+ it('works with helptags', function()
+ call('Test_helptags')
+ expected_empty()
+ end)
+
describe('command line completion', function()
local Screen = require('test.functional.ui.screen')
local screen