Change test wrapper to a struct

This commit is contained in:
Michael Miller 2018-11-17 00:14:14 -07:00
parent d52be1ec50
commit 072055d947

View file

@ -931,7 +931,7 @@ module Spectator::DSL
# The block passed to this macro is the actual test code. # The block passed to this macro is the actual test code.
private macro _spectator_example_wrapper(class_name, run_method_name, &block) private macro _spectator_example_wrapper(class_name, run_method_name, &block)
# Wrapper class for isolating the test code. # Wrapper class for isolating the test code.
class {{class_name.id}} struct {{class_name.id}}
# Mix in methods and macros specifically for example DSL. # Mix in methods and macros specifically for example DSL.
include ::Spectator::DSL::ExampleDSL include ::Spectator::DSL::ExampleDSL