aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/008_autocommands_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/008_autocommands_spec.lua')
-rw-r--r--test/functional/legacy/008_autocommands_spec.lua10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/functional/legacy/008_autocommands_spec.lua b/test/functional/legacy/008_autocommands_spec.lua
index 8978508fd7..b7b411d631 100644
--- a/test/functional/legacy/008_autocommands_spec.lua
+++ b/test/functional/legacy/008_autocommands_spec.lua
@@ -1,12 +1,14 @@
-- Test for BufWritePre autocommand that deletes or unloads the buffer.
-- Test for BufUnload autocommand that unloads all other buffers.
-local t = require('test.functional.testutil')()
-local source = t.source
-local clear, command, expect, eq, eval = t.clear, t.command, t.expect, t.eq, t.eval
+local t = require('test.testutil')
+local n = require('test.functional.testnvim')()
+
+local source = n.source
+local clear, command, expect, eq, eval = n.clear, n.command, n.expect, t.eq, n.eval
local write_file, dedent = t.write_file, t.dedent
local read_file = t.read_file
-local expect_exit = t.expect_exit
+local expect_exit = n.expect_exit
describe('autocommands that delete and unload buffers:', function()
local test_file = 'Xtest-008_autocommands.out'