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 c152cdd0f3
This commit is contained in:
Justin M. Keyes
2015-03-11 01:47:38 -04:00
parent f8f07891e7
commit 3de0f5654b

View File

@@ -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([[