From 072055d947bd498b33244a3d2482213abd3309c6 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 17 Nov 2018 00:14:14 -0700 Subject: [PATCH] Change test wrapper to a struct --- src/spectator/dsl/structure_dsl.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index 5214b96..88ec0d5 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -931,7 +931,7 @@ module Spectator::DSL # The block passed to this macro is the actual test code. private macro _spectator_example_wrapper(class_name, run_method_name, &block) # Wrapper class for isolating the test code. - class {{class_name.id}} + struct {{class_name.id}} # Mix in methods and macros specifically for example DSL. include ::Spectator::DSL::ExampleDSL