diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-05-18 21:50:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-18 21:50:57 +0200 |
commit | 1cbe0145695bea4168b4e23f61e29e51684088e1 (patch) | |
tree | 67e894a87ed21808c41eb84b6406c370311c4943 /test/functional/options/defaults_spec.lua | |
parent | aa610690bf9e525fcd172def37e14505ac449cf2 (diff) | |
parent | 9d7aaf7149a5543b1ddfc89fb506a1019bec3ffb (diff) | |
download | rneovim-1cbe0145695bea4168b4e23f61e29e51684088e1.tar.gz rneovim-1cbe0145695bea4168b4e23f61e29e51684088e1.tar.bz2 rneovim-1cbe0145695bea4168b4e23f61e29e51684088e1.zip |
Merge #9301 'runtime/lua'
Diffstat (limited to 'test/functional/options/defaults_spec.lua')
-rw-r--r-- | test/functional/options/defaults_spec.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/options/defaults_spec.lua b/test/functional/options/defaults_spec.lua index 0fc2876d00..415b526051 100644 --- a/test/functional/options/defaults_spec.lua +++ b/test/functional/options/defaults_spec.lua @@ -1,5 +1,4 @@ local helpers = require('test.functional.helpers')(after_each) -local global_helpers = require('test.helpers') local Screen = require('test.functional.ui.screen') @@ -16,7 +15,7 @@ local neq = helpers.neq local mkdir = helpers.mkdir local rmdir = helpers.rmdir local alter_slashes = helpers.alter_slashes -local table_contains = global_helpers.table_contains +local tbl_contains = helpers.tbl_contains describe('startup defaults', function() describe(':filetype', function() @@ -262,7 +261,7 @@ describe('XDG-based defaults', function() for _,v in ipairs(rtp) do local m = string.match(v, [=[[/\]nvim[^/\]*[/\]site.*$]=]) - if m and not table_contains(rv, m) then + if m and not tbl_contains(rv, m) then table.insert(rv, m) end end |