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
|
module Builder
|
||||||
extend self
|
extend self
|
||||||
|
|
||||||
@group_stack = [::Spectator::DSL::ExampleGroupBuilder.new]
|
@group_stack = [::Spectator::DSL::ExampleGroupBuilder.new("ROOT")]
|
||||||
|
|
||||||
private def current_group
|
private def current_group
|
||||||
@group_stack.last
|
@group_stack.last
|
||||||
|
|
|
@ -8,6 +8,9 @@ module Spectator
|
||||||
@after_each_hooks = [] of ->
|
@after_each_hooks = [] of ->
|
||||||
@around_each_hooks = [] of Proc(Nil) ->
|
@around_each_hooks = [] of Proc(Nil) ->
|
||||||
|
|
||||||
|
def initialize(@what : String)
|
||||||
|
end
|
||||||
|
|
||||||
def add_child(child : ExampleFactory | ExampleGroupBuilder) : Nil
|
def add_child(child : ExampleFactory | ExampleGroupBuilder) : Nil
|
||||||
@children << child
|
@children << child
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue