aboutsummaryrefslogtreecommitdiff
path: root/test/functional/autocmd
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-08-28 22:47:54 +0200
committerGitHub <noreply@github.com>2019-08-28 22:47:54 +0200
commit6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c (patch)
tree537bc9d4b64dce8854cc0327089b8e62ed5d17d0 /test/functional/autocmd
parent1d59575450e0a09d710a7cad2b8e1b5c5e0242f5 (diff)
downloadrneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.tar.gz
rneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.tar.bz2
rneovim-6cc76194b2d67d6160a72f017a37b9d3a6b7dd3c.zip
tests: use runtime from build for doc/tags with :help (#10479)
This is better practice in general, and allows to remove the "helptags ALL" hacks. Ref: https://github.com/neovim/neovim/issues/8824 Ref: https://github.com/neovim/neovim/commit/f1b67c3453c * Makefile: fix dependencies with regard to helptags - use the file as the main target to avoid unnecessary triggering - use "make oldtest" on Travis to ensure it gets built
Diffstat (limited to 'test/functional/autocmd')
-rw-r--r--test/functional/autocmd/bufenter_spec.lua2
-rw-r--r--test/functional/autocmd/filetype_spec.lua1
2 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/autocmd/bufenter_spec.lua b/test/functional/autocmd/bufenter_spec.lua
index e14ddb3316..47f4adb0d6 100644
--- a/test/functional/autocmd/bufenter_spec.lua
+++ b/test/functional/autocmd/bufenter_spec.lua
@@ -33,9 +33,9 @@ describe('autocmd BufEnter', function()
end)
it('triggered by ":split normal|:help|:bw"', function()
+ helpers.add_builddir_to_rtp()
command("split normal")
command("wincmd j")
- command("helptags runtime/doc")
command("help")
command("wincmd L")
command("autocmd BufEnter normal let g:bufentered = 1")
diff --git a/test/functional/autocmd/filetype_spec.lua b/test/functional/autocmd/filetype_spec.lua
index e6fa7ab6bb..a571f6ee3b 100644
--- a/test/functional/autocmd/filetype_spec.lua
+++ b/test/functional/autocmd/filetype_spec.lua
@@ -8,6 +8,7 @@ describe('autocmd FileType', function()
before_each(clear)
it("is triggered by :help only once", function()
+ helpers.add_builddir_to_rtp()
command("let g:foo = 0")
command("autocmd FileType help let g:foo = g:foo + 1")
command("help help")