From 6bf07e39671b89bf7add8c8209f54e0feb1dbd9e Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 23 Sep 2018 12:27:08 -0600 Subject: [PATCH] Collection for #given is now an array of ValueWrapper --- src/spectator/dsl/structure_dsl.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/dsl/structure_dsl.cr b/src/spectator/dsl/structure_dsl.cr index 919caa0..7f72fee 100644 --- a/src/spectator/dsl/structure_dsl.cr +++ b/src/spectator/dsl/structure_dsl.cr @@ -81,9 +81,9 @@ module Spectator end def {{to_a_method_name.id}} - Array(typeof(%first)).new.tap do |%array| + Array(::Spectator::ValueWrapper).new.tap do |%array| %collection.each do |%item| - %array << %item + %array << ::Spectator::TypedValueWrapper(typeof(%item)).new(%item) end end end