Files
neovim/test/functional/legacy/options_spec.lua
Thiago de Arruda 117d3db6d7 test: Simplify/fix options_spec.lua
The options_spec.lua suite has one purpose: Check if the :options commands will
throw any exception(:options is implemented by $VIMRUNTIME/optwin.vim). For this
it is best to use the `vim_command` API function since it will automatically
catch exceptions and forward them via msgpack-rpc.

Also, the option window seems to affect other tests, so call `restart` in the
teardown hook.
2014-11-06 04:21:57 -03:00

15 lines
395 B
Lua

-- Test if ":options" throws any exception. The options window seems to mess
-- other tests, so restart nvim in the teardown hook
local helpers = require('test.functional.helpers')
local restart, command, clear = helpers.restart, helpers.command, helpers.clear
describe('options', function()
setup(clear)
teardown(restart)
it('is working', function()
command('options')
end)
end)