aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/functional/provider/define_spec.lua9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/functional/provider/define_spec.lua b/test/functional/provider/define_spec.lua
index 26cd997fc3..c30ad6d8c2 100644
--- a/test/functional/provider/define_spec.lua
+++ b/test/functional/provider/define_spec.lua
@@ -311,14 +311,19 @@ local function function_specs_for(fn, sync, first_arg_factory, init)
end)
it('with range', function()
+ helpers.insert([[
+ foo
+ bar
+ baz
+ zub]])
call(fn, args..[[, {'range': ''}]])
local function on_setup()
- command('%call TestFunction(1, "a", ["b", "c"])')
+ command('2,3call TestFunction(1, "a", ["b", "c"])')
end
local function handler(method, arguments)
eq('test-handler', method)
- eq({{1, 'a', {'b', 'c'}}, {1, 1}}, arguments)
+ eq({{1, 'a', {'b', 'c'}}, {2, 3}}, arguments)
return 'rv'
end