aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-03-11 01:47:38 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-03-11 01:47:38 -0400
commit3de0f5654b2547bfdfbb92d3abffb7b87d50539c (patch)
tree0bb4df2992efb1e9ef386fd67db996b3348b428b
parentf8f07891e7f232052e4a1107e941c62b560b52ec (diff)
downloadrneovim-3de0f5654b2547bfdfbb92d3abffb7b87d50539c.tar.gz
rneovim-3de0f5654b2547bfdfbb92d3abffb7b87d50539c.tar.bz2
rneovim-3de0f5654b2547bfdfbb92d3abffb7b87d50539c.zip
tests: fix 005_bufleave_delete_buffer_spec.lua
- After _spec suffix was added so busted could find the test, it failed. - The original legacy test wrote to a "test.out", but the new test uses register @A. - Original test did not contain 1d and new test shouldn't either. ref c152cdd0f34c10b3d3a8007838561556578685c6
-rw-r--r--test/functional/legacy/005_bufleave_delete_buffer_spec.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/legacy/005_bufleave_delete_buffer_spec.lua b/test/functional/legacy/005_bufleave_delete_buffer_spec.lua
index e8459ad4a7..e6989a6674 100644
--- a/test/functional/legacy/005_bufleave_delete_buffer_spec.lua
+++ b/test/functional/legacy/005_bufleave_delete_buffer_spec.lua
@@ -38,18 +38,15 @@ describe('test5', function()
-- Write current file contents.
execute('?start?,$yank A')
- -- Delete alternate buffer.
- execute('bwipe test.out')
- execute('au bufleave test5.in bwipe')
-
-- Delete current buffer, get an empty one.
execute('bwipe!')
+ -- Append an extra line to the output register.
feed('ithis is another test line<esc>:yank A<cr>')
-- Output results
execute('%d')
execute('0put a')
- execute('1d | $d')
+ execute('$d')
-- Assert buffer contents.
expect([[