mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Pass arguments directly onto initializer with splat
This commit is contained in:
parent
03a8efd7f8
commit
3c31783fd7
1 changed files with 4 additions and 4 deletions
|
@ -18,13 +18,13 @@ module Spectator
|
||||||
@@group_stack.push(group)
|
@@group_stack.push(group)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_group(what : String) : Nil
|
def start_group(*args) : Nil
|
||||||
group = ::Spectator::DSL::ExampleGroupBuilder.new(what)
|
group = ::Spectator::DSL::ExampleGroupBuilder.new(*args)
|
||||||
push_group(group)
|
push_group(group)
|
||||||
end
|
end
|
||||||
|
|
||||||
def start_given_group(what : String, values : Array(ValueWrapper)) : Nil
|
def start_given_group(*args) : Nil
|
||||||
group = ::Spectator::DSL::GivenExampleGroupBuilder.new(what, values)
|
group = ::Spectator::DSL::GivenExampleGroupBuilder.new(*args)
|
||||||
push_group(group)
|
push_group(group)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue