aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ex_cmds/arg_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ex_cmds/arg_spec.lua')
-rw-r--r--test/functional/ex_cmds/arg_spec.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/ex_cmds/arg_spec.lua b/test/functional/ex_cmds/arg_spec.lua
index 810b001ec0..45b2f50af1 100644
--- a/test/functional/ex_cmds/arg_spec.lua
+++ b/test/functional/ex_cmds/arg_spec.lua
@@ -1,6 +1,7 @@
local helpers = require('test.functional.helpers')(after_each)
local eq, command, fn = helpers.eq, helpers.command, helpers.fn
local ok = helpers.ok
+local matches = helpers.matches
local clear = helpers.clear
describe(':argument', function()
@@ -15,7 +16,7 @@ describe(':argument', function()
helpers.feed([[<C-\><C-N>]])
local bufname_before = fn.bufname('%')
local bufnr_before = fn.bufnr('%')
- helpers.ok(nil ~= string.find(bufname_before, '^term://')) -- sanity
+ matches('^term://', bufname_before) -- sanity
command('argument 1')
helpers.feed([[<C-\><C-N>]])