aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/options_spec.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-11-06 04:36:46 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-06 04:36:46 -0300
commit4cc26fba249361cccd791a76fc35c46d851096a5 (patch)
tree42bdfa20a8247d278a4a82039a98a1b8e01a67c9 /test/functional/legacy/options_spec.lua
parent3972715ce791466c1ea3c873f78e95e13eba6e58 (diff)
parentd83868fe9071af1b4866594eac12f7aa0fa71b53 (diff)
downloadrneovim-4cc26fba249361cccd791a76fc35c46d851096a5.tar.gz
rneovim-4cc26fba249361cccd791a76fc35c46d851096a5.tar.bz2
rneovim-4cc26fba249361cccd791a76fc35c46d851096a5.zip
Merge PR #1398 'Tests and msgpack rpc improvements'
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r--test/functional/legacy/options_spec.lua16
1 files changed, 5 insertions, 11 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua
index fcc39434ff..983d168609 100644
--- a/test/functional/legacy/options_spec.lua
+++ b/test/functional/legacy/options_spec.lua
@@ -1,20 +1,14 @@
--- Test for ":options".
+-- 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 clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
-local execute, expect = helpers.execute, helpers.expect
+local restart, command, clear = helpers.restart, helpers.command, helpers.clear
describe('options', function()
setup(clear)
+ teardown(restart)
it('is working', function()
- insert('result')
-
- execute("let caught = 'ok'")
- execute('try', 'options', 'catch', 'let caught = v:throwpoint . "\n" . v:exception', 'endtry')
- execute('buf 1')
- execute('$put =caught')
-
- expect("result\nok")
+ command('options')
end)
end)