Example wrappers need a top-level initializer

The default initializer made by the compiler takes no arguments.
Use this one to not create a default initializer.
This commit is contained in:
Michael Miller 2018-09-23 12:19:07 -06:00
parent ecba0d00ec
commit ab7087649d

View file

@ -4,6 +4,9 @@ module Spectator
module DSL
module StructureDSL
def initialize(locals : Hash(Symbol, ::Spectator::ValueWrapper))
end
macro describe(what, &block)
context({{what}}) {{block}}
end