Merge pull request #4924 from jamessan/test-cleanup

Functional test cleanup
This commit is contained in:
James McCoy
2016-06-15 10:44:26 -04:00
committed by GitHub
2 changed files with 6 additions and 5 deletions

View File

@@ -39,7 +39,7 @@ describe(':emenu', function()
end)
it('executes correct bindings in command mode', function()
feed('ithis is a sentence<esc>^"+yiwo<esc>')
feed('ithis is a sentence<esc>^yiwo<esc>')
-- Invoke "Edit.Paste" in normal-mode.
nvim('command', 'emenu Edit.Paste')

View File

@@ -6,10 +6,13 @@ local eq, eval, clear, write_file, execute, source =
helpers.execute, helpers.source
describe(':write', function()
it('&backupcopy=auto preserves symlinks', function()
clear('set backupcopy=auto')
after_each(function()
os.remove('test_bkc_file.txt')
os.remove('test_bkc_link.txt')
end)
it('&backupcopy=auto preserves symlinks', function()
clear('set backupcopy=auto')
write_file('test_bkc_file.txt', 'content0')
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
source([[
@@ -23,8 +26,6 @@ describe(':write', function()
it('&backupcopy=no replaces symlink with new file', function()
clear('set backupcopy=no')
os.remove('test_bkc_file.txt')
os.remove('test_bkc_link.txt')
write_file('test_bkc_file.txt', 'content0')
execute("silent !ln -s test_bkc_file.txt test_bkc_link.txt")
source([[