aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/writefile_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/legacy/writefile_spec.lua')
-rw-r--r--test/functional/legacy/writefile_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/legacy/writefile_spec.lua b/test/functional/legacy/writefile_spec.lua
index efdfc1d09f..765d373b82 100644
--- a/test/functional/legacy/writefile_spec.lua
+++ b/test/functional/legacy/writefile_spec.lua
@@ -1,6 +1,6 @@
-- Tests for writefile()
-local helpers = require('test.functional.helpers')
+local helpers = require('test.functional.helpers')(after_each)
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
describe('writefile', function()
@@ -17,6 +17,7 @@ describe('writefile', function()
execute('bwipeout!')
execute('$put =readfile(f)')
execute('1 delete _')
+ execute('call delete(f)')
-- Assert buffer contents.
expect([[