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
|
example_type : ::SpectatorTest.class, &runner : ::SpectatorTest ->) : Nil
|
||||||
builder = ->{ example_type.new.as(::SpectatorTest) }
|
builder = ->{ example_type.new.as(::SpectatorTest) }
|
||||||
wrapper = TestWrapper.new(description, source, builder, runner)
|
wrapper = TestWrapper.new(description, source, builder, runner)
|
||||||
example = Example.new(current_group, wrapper)
|
factory = Builders::ExampleBuilder.new(wrapper)
|
||||||
# TODO: Add to stack.
|
@@stack.current.add_child(factory)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Adds a block of code to run before all examples in the current group.
|
# Adds a block of code to run before all examples in the current group.
|
||||||
|
|
|
@ -1424,7 +1424,7 @@ module Spectator::DSL
|
||||||
{% end %}
|
{% end %}
|
||||||
{% else %}
|
{% else %}
|
||||||
def %run
|
def %run
|
||||||
{{block}}
|
{{block.body}}
|
||||||
end
|
end
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue