mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Get examples working again
This commit is contained in:
parent
08ee03b1de
commit
5d86b4f50e
2 changed files with 3 additions and 3 deletions
|
@ -46,8 +46,8 @@ module Spectator::DSL
|
|||
example_type : ::SpectatorTest.class, &runner : ::SpectatorTest ->) : Nil
|
||||
builder = ->{ example_type.new.as(::SpectatorTest) }
|
||||
wrapper = TestWrapper.new(description, source, builder, runner)
|
||||
example = Example.new(current_group, wrapper)
|
||||
# TODO: Add to stack.
|
||||
factory = Builders::ExampleBuilder.new(wrapper)
|
||||
@@stack.current.add_child(factory)
|
||||
end
|
||||
|
||||
# Adds a block of code to run before all examples in the current group.
|
||||
|
|
|
@ -1424,7 +1424,7 @@ module Spectator::DSL
|
|||
{% end %}
|
||||
{% else %}
|
||||
def %run
|
||||
{{block}}
|
||||
{{block.body}}
|
||||
end
|
||||
{% end %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue