mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Group builder needs "what" as first arg
This commit is contained in:
parent
0999cb2dbc
commit
09184f4a2a
2 changed files with 4 additions and 1 deletions
|
@ -3,7 +3,7 @@ module Spectator
|
|||
module Builder
|
||||
extend self
|
||||
|
||||
@group_stack = [::Spectator::DSL::ExampleGroupBuilder.new]
|
||||
@group_stack = [::Spectator::DSL::ExampleGroupBuilder.new("ROOT")]
|
||||
|
||||
private def current_group
|
||||
@group_stack.last
|
||||
|
|
|
@ -8,6 +8,9 @@ module Spectator
|
|||
@after_each_hooks = [] of ->
|
||||
@around_each_hooks = [] of Proc(Nil) ->
|
||||
|
||||
def initialize(@what : String)
|
||||
end
|
||||
|
||||
def add_child(child : ExampleFactory | ExampleGroupBuilder) : Nil
|
||||
@children << child
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue