aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkuuote <znmxodq1@gmail.com>2020-06-01 00:10:17 +0900
committerkuuote <znmxodq1@gmail.com>2020-06-01 00:10:17 +0900
commit89123017b8148569bafb34d03304358cf1411a7f (patch)
treec19b9775b28a74479510dfdff0f05c4fed6a5b54
parent7124c0e5acde38957af7621afd1d92fb2b6d1d58 (diff)
downloadrneovim-89123017b8148569bafb34d03304358cf1411a7f.tar.gz
rneovim-89123017b8148569bafb34d03304358cf1411a7f.tar.bz2
rneovim-89123017b8148569bafb34d03304358cf1411a7f.zip
test: rewrite to multiple arguments
-rw-r--r--test/functional/provider/define_spec.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/provider/define_spec.lua b/test/functional/provider/define_spec.lua
index c04dcd47b9..1d50ce0a56 100644
--- a/test/functional/provider/define_spec.lua
+++ b/test/functional/provider/define_spec.lua
@@ -92,12 +92,12 @@ local function command_specs_for(fn, sync, first_arg_factory, init)
it('with nargs/double-quote', function()
call(fn, args..', {"nargs": "*"}')
local function on_setup()
- command('RpcCommand "arg"')
+ command('RpcCommand "arg1" "arg2" "arg3"')
end
local function handler(method, arguments)
eq('test-handler', method)
- eq({'"arg"'}, arguments[1])
+ eq({'"arg1"', '"arg2"', '"arg3"'}, arguments[1])
return ''
end