aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/options_spec.lua
diff options
context:
space:
mode:
authorRainer Borene <rainerborene@gmail.com>2014-10-22 20:34:54 -0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-11-04 12:57:32 -0300
commit5b7d9bbd089563154e0bfbc7af31c89929cf3969 (patch)
tree690e8ef4a72f560e8dbfeb7b6f146e7f03486b66 /test/functional/legacy/options_spec.lua
parentb33c92439bb329e530ece0b125b16482f7ed1ab1 (diff)
downloadrneovim-5b7d9bbd089563154e0bfbc7af31c89929cf3969.tar.gz
rneovim-5b7d9bbd089563154e0bfbc7af31c89929cf3969.tar.bz2
rneovim-5b7d9bbd089563154e0bfbc7af31c89929cf3969.zip
legacy tests: migrate test_options
Diffstat (limited to 'test/functional/legacy/options_spec.lua')
-rw-r--r--test/functional/legacy/options_spec.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/functional/legacy/options_spec.lua b/test/functional/legacy/options_spec.lua
new file mode 100644
index 0000000000..fcc39434ff
--- /dev/null
+++ b/test/functional/legacy/options_spec.lua
@@ -0,0 +1,20 @@
+-- Test for ":options".
+
+local helpers = require('test.functional.helpers')
+local clear, feed, insert = helpers.clear, helpers.feed, helpers.insert
+local execute, expect = helpers.execute, helpers.expect
+
+describe('options', function()
+ setup(clear)
+
+ 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")
+ end)
+end)