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.lua16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/functional/ex_cmds/arg_spec.lua b/test/functional/ex_cmds/arg_spec.lua
index 71a2f4ed77..9b89823dcc 100644
--- a/test/functional/ex_cmds/arg_spec.lua
+++ b/test/functional/ex_cmds/arg_spec.lua
@@ -1,8 +1,10 @@
-local t = require('test.functional.testutil')()
-local eq, command, fn = t.eq, t.command, t.fn
+local t = require('test.testutil')
+local n = require('test.functional.testnvim')()
+
+local eq, command, fn = t.eq, n.command, n.fn
local ok = t.ok
local matches = t.matches
-local clear = t.clear
+local clear = n.clear
describe(':argument', function()
before_each(function()
@@ -11,19 +13,19 @@ describe(':argument', function()
it('does not restart :terminal buffer', function()
command('terminal')
- t.feed([[<C-\><C-N>]])
+ n.feed([[<C-\><C-N>]])
command('argadd')
- t.feed([[<C-\><C-N>]])
+ n.feed([[<C-\><C-N>]])
local bufname_before = fn.bufname('%')
local bufnr_before = fn.bufnr('%')
matches('^term://', bufname_before) -- sanity
command('argument 1')
- t.feed([[<C-\><C-N>]])
+ n.feed([[<C-\><C-N>]])
local bufname_after = fn.bufname('%')
local bufnr_after = fn.bufnr('%')
- eq('[' .. bufname_before .. ']', t.eval('trim(execute("args"))'))
+ eq('[' .. bufname_before .. ']', n.eval('trim(execute("args"))'))
ok(fn.line('$') > 1)
eq(bufname_before, bufname_after)
eq(bufnr_before, bufnr_after)