mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21:49 +00:00
test: fixeol_spec: setup/teardown
Without this cleanup, test will fail if run multiple times.
This commit is contained in:
@@ -5,7 +5,20 @@ local feed, insert, source = helpers.feed, helpers.insert, helpers.source
|
|||||||
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
local clear, execute, expect = helpers.clear, helpers.execute, helpers.expect
|
||||||
|
|
||||||
describe('fixeol', function()
|
describe('fixeol', function()
|
||||||
setup(clear)
|
local function rmtestfiles()
|
||||||
|
os.remove('test.out')
|
||||||
|
os.remove('XXEol')
|
||||||
|
os.remove('XXNoEol')
|
||||||
|
os.remove('XXTestEol')
|
||||||
|
os.remove('XXTestNoEol')
|
||||||
|
end
|
||||||
|
setup(function()
|
||||||
|
clear()
|
||||||
|
rmtestfiles()
|
||||||
|
end)
|
||||||
|
teardown(function()
|
||||||
|
rmtestfiles()
|
||||||
|
end)
|
||||||
|
|
||||||
it('is working', function()
|
it('is working', function()
|
||||||
-- First write two test files – with and without trailing EOL.
|
-- First write two test files – with and without trailing EOL.
|
||||||
|
Reference in New Issue
Block a user