diff options
| author | James McCoy <jamessan@jamessan.com> | 2016-06-06 21:54:35 -0400 | 
|---|---|---|
| committer | James McCoy <jamessan@jamessan.com> | 2016-06-15 09:54:22 -0400 | 
| commit | bec5fd5809afc6da52785e3007a467ec988d7d77 (patch) | |
| tree | cb5b51c1fb7b41a0dbfe52d81f1ac3423a149843 /test/functional/ex_cmds/write_spec.lua | |
| parent | aa22b5fd9a10a6094ea3d9cd88d3bfb3496a1acf (diff) | |
| download | rneovim-bec5fd5809afc6da52785e3007a467ec988d7d77.tar.gz rneovim-bec5fd5809afc6da52785e3007a467ec988d7d77.tar.bz2 rneovim-bec5fd5809afc6da52785e3007a467ec988d7d77.zip | |
test: functional: Remove test_bkc_* files after testing
Diffstat (limited to 'test/functional/ex_cmds/write_spec.lua')
| -rw-r--r-- | test/functional/ex_cmds/write_spec.lua | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/test/functional/ex_cmds/write_spec.lua b/test/functional/ex_cmds/write_spec.lua index 83513d747f..7f5eba1fc8 100644 --- a/test/functional/ex_cmds/write_spec.lua +++ b/test/functional/ex_cmds/write_spec.lua @@ -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([[ | 
