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)
|
||||
end
|
||||
|
||||
def start_group(what : String) : Nil
|
||||
group = ::Spectator::DSL::ExampleGroupBuilder.new(what)
|
||||
def start_group(*args) : Nil
|
||||
group = ::Spectator::DSL::ExampleGroupBuilder.new(*args)
|
||||
push_group(group)
|
||||
end
|
||||
|
||||
def start_given_group(what : String, values : Array(ValueWrapper)) : Nil
|
||||
group = ::Spectator::DSL::GivenExampleGroupBuilder.new(what, values)
|
||||
def start_given_group(*args) : Nil
|
||||
group = ::Spectator::DSL::GivenExampleGroupBuilder.new(*args)
|
||||
push_group(group)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue