diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-06-20 01:30:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-20 01:30:59 -0400 |
commit | 7df9dd33a1497493bc1d78a533473684388c05b0 (patch) | |
tree | d0d684c16be541690b7ec5625e779b34b07e3df4 | |
parent | 8a4e5b4bc23765bf5846f92f438b3721a3076700 (diff) | |
parent | 2126ec0c5b30e69ec8b96586a8dec9585c8206fd (diff) | |
download | rneovim-7df9dd33a1497493bc1d78a533473684388c05b0.tar.gz rneovim-7df9dd33a1497493bc1d78a533473684388c05b0.tar.bz2 rneovim-7df9dd33a1497493bc1d78a533473684388c05b0.zip |
Merge #4933 from ZyX-I/fix-matchparen-spec
Make matchparen_spec.lua fail if matchparen is not available
-rw-r--r-- | test/functional/plugin/matchparen_spec.lua | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/test/functional/plugin/matchparen_spec.lua b/test/functional/plugin/matchparen_spec.lua index 810b273fd8..4181f69263 100644 --- a/test/functional/plugin/matchparen_spec.lua +++ b/test/functional/plugin/matchparen_spec.lua @@ -1,20 +1,27 @@ local helpers = require('test.functional.helpers')(after_each) +local plugin_helpers = require('test.functional.plugin.helpers') local Screen = require('test.functional.ui.screen') -local clear, feed, execute = helpers.clear, helpers.feed, helpers.execute + +local execute = helpers.execute +local meths = helpers.meths +local feed = helpers.feed +local eq = helpers.eq + +local reset = plugin_helpers.reset describe('matchparen', function() local screen before_each(function() - clear() + reset() screen = Screen.new(20,5) screen:attach() screen:set_default_attr_ignore( {{bold=true, foreground=Screen.colors.Blue}} ) end) it('uses correct column after i_<Up>. Vim patch 7.4.1296', function() - execute('set noai nosi nocin') - execute('runtime plugin/matchparen.vim') + execute('set noautoindent nosmartindent nocindent laststatus=0') + eq(1, meths.get_var('loaded_matchparen')) feed('ivoid f_test()<cr>') feed('{<cr>') feed('}') |