test/functional: fix a dependency on the previous test suite

While trying to debug an issue, I discovered that the tests for illegal
arguments depended on the prior suite having run and started a session.
Let's remove that unintentional dependency by starting our own session
before each test.
This commit is contained in:
John Szakmeister
2016-05-06 19:55:14 -04:00
parent 508ee7f245
commit e91afdcda6

View File

@@ -111,6 +111,10 @@ end
-- Test legal parameters for 'getcwd' and 'haslocaldir'
for _, cmd in ipairs {'getcwd', 'haslocaldir'} do
describe(cmd..'()', function()
before_each(function()
clear()
end)
-- Test invalid argument types
local err474 = 'Vim(call):E474: Invalid argument'
it('fails on string', function()