Get examples working again

This commit is contained in:
Michael Miller 2019-09-12 20:26:54 -06:00
parent 08ee03b1de
commit 5d86b4f50e
2 changed files with 3 additions and 3 deletions

View file

@ -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.

View file

@ -1424,7 +1424,7 @@ module Spectator::DSL
{% end %}
{% else %}
def %run
{{block}}
{{block.body}}
end
{% end %}