aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/009_bufleave_autocommand_spec.lua
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-08 21:50:14 +0300
committerZyX <kp-pav@yandex.ru>2017-04-08 21:50:14 +0300
commitb0731290e89dae0a2957e18cfa9ab11ad7290af8 (patch)
treea52fbc023df51fdaeef6f44c9effe7eda44ac256 /test/functional/legacy/009_bufleave_autocommand_spec.lua
parent1ef98b34b3171452e55d656d26b96d803236bf65 (diff)
downloadrneovim-b0731290e89dae0a2957e18cfa9ab11ad7290af8.tar.gz
rneovim-b0731290e89dae0a2957e18cfa9ab11ad7290af8.tar.bz2
rneovim-b0731290e89dae0a2957e18cfa9ab11ad7290af8.zip
functests: Move test from legacy/009 to autocmd/autocmd
Diffstat (limited to 'test/functional/legacy/009_bufleave_autocommand_spec.lua')
-rw-r--r--test/functional/legacy/009_bufleave_autocommand_spec.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/functional/legacy/009_bufleave_autocommand_spec.lua b/test/functional/legacy/009_bufleave_autocommand_spec.lua
deleted file mode 100644
index e2b3dca685..0000000000
--- a/test/functional/legacy/009_bufleave_autocommand_spec.lua
+++ /dev/null
@@ -1,30 +0,0 @@
--- Test for Bufleave autocommand that deletes the buffer we are about to edit.
-
-local helpers = require('test.functional.helpers')(after_each)
-
-local eq = helpers.eq
-local clear = helpers.clear
-local meths = helpers.meths
-local expect = helpers.expect
-local command = helpers.command
-local exc_exec = helpers.exc_exec
-local curbufmeths = helpers.curbufmeths
-
-describe('BufLeave autocommand', function()
- setup(clear)
-
- it('is working', function()
- meths.set_option('hidden', true)
- curbufmeths.set_lines(0, 1, false, {
- 'start of test file xx',
- 'end of test file xx'})
-
- command('autocmd BufLeave * bwipeout yy')
- eq('Vim(edit):E143: Autocommands unexpectedly deleted new buffer yy',
- exc_exec('edit yy'))
-
- expect([[
- start of test file xx
- end of test file xx]])
- end)
-end)