diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-11 12:36:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-11 12:36:44 -0400 |
commit | 871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43 (patch) | |
tree | 9770dc1596fb624b323b127917c5d6ac789961f9 /test/functional/shell/viml_system_spec.lua | |
parent | f0c1a06792586d8373639ad2e9d34de6594cece3 (diff) | |
parent | 6881fcd203a0df156557934caf532cc9baa6aa93 (diff) | |
download | rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.tar.gz rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.tar.bz2 rneovim-871fc6c1e17bc1fc1b3a937ff481aca1f0aeff43.zip |
Merge #4839 from ZyX-I/luaviml'/lua'/encode_vim_to_object'/functests
Check sanitizer results right after the test
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r-- | test/functional/shell/viml_system_spec.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua index 00b16e9158..3de022cbd9 100644 --- a/test/functional/shell/viml_system_spec.lua +++ b/test/functional/shell/viml_system_spec.lua @@ -2,7 +2,7 @@ -- - `system()` -- - `systemlist()` -local helpers = require('test.functional.helpers') +local helpers = require('test.functional.helpers')(after_each) local eq, clear, eval, feed, nvim = helpers.eq, helpers.clear, helpers.eval, helpers.feed, helpers.nvim @@ -151,8 +151,8 @@ describe('system()', function() describe('with output containing NULs', function() local fname = 'Xtest' - setup(create_file_with_nuls(fname)) - teardown(delete_file(fname)) + before_each(create_file_with_nuls(fname)) + after_each(delete_file(fname)) it('replaces NULs by SOH characters', function() eq('part1\001part2\001part3\n', eval('system("cat '..fname..'")')) @@ -310,8 +310,8 @@ describe('systemlist()', function() describe('with output containing NULs', function() local fname = 'Xtest' - setup(create_file_with_nuls(fname)) - teardown(delete_file(fname)) + before_each(create_file_with_nuls(fname)) + after_each(delete_file(fname)) it('replaces NULs by newline characters', function() eq({'part1\npart2\npart3'}, eval('systemlist("cat '..fname..'")')) |