diff options
author | ZyX <kp-pav@yandex.ru> | 2015-09-27 02:49:48 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2015-10-08 22:01:12 +0300 |
commit | 1162962d8beaab6be78a32954600205686f5d09b (patch) | |
tree | b08c4f7a92e4f3f254daad372778aa06d8e41268 /test/functional/shada/errors_spec.lua | |
parent | 9d72f8ebaa6a30cdf32d538ad5cb7605dd88b1fe (diff) | |
download | rneovim-1162962d8beaab6be78a32954600205686f5d09b.tar.gz rneovim-1162962d8beaab6be78a32954600205686f5d09b.tar.bz2 rneovim-1162962d8beaab6be78a32954600205686f5d09b.zip |
functests: Refactor tests:
- Remove unused variables.
- Do not use helpers.nvim_feed in most cases.
- Do not use helpers.nvim and helpers.nvim_eval at all.
- Add helpers.funcs and helpers.\*meths special tables. Indexing such table
creates functions which call helpers.call or helpers.nvim (and similar) with
first argument equal to table index.
Diffstat (limited to 'test/functional/shada/errors_spec.lua')
-rw-r--r-- | test/functional/shada/errors_spec.lua | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/test/functional/shada/errors_spec.lua b/test/functional/shada/errors_spec.lua index b612ed48c5..16ae77af02 100644 --- a/test/functional/shada/errors_spec.lua +++ b/test/functional/shada/errors_spec.lua @@ -1,14 +1,10 @@ -- ShaDa errors handling support local helpers = require('test.functional.helpers') -local nvim, nvim_window, nvim_curwin, nvim_command, nvim_feed, nvim_eval, eq = - helpers.nvim, helpers.window, helpers.curwin, helpers.command, helpers.feed, - helpers.eval, helpers.eq -local exc_exec = helpers.exc_exec +local nvim_command, eq, exc_exec = helpers.command, helpers.eq, helpers.exc_exec local shada_helpers = require('test.functional.shada.helpers') -local reset, set_additional_cmd, clear, get_shada_rw = - shada_helpers.reset, shada_helpers.set_additional_cmd, - shada_helpers.clear, shada_helpers.get_shada_rw +local reset, clear, get_shada_rw = + shada_helpers.reset, shada_helpers.clear, shada_helpers.get_shada_rw local wshada, sdrcmd, shada_fname, clean = get_shada_rw('Xtest-functional-shada-errors.shada') |