Collection for #given is now an array of ValueWrapper

This commit is contained in:
Michael Miller 2018-09-23 12:27:08 -06:00
parent faf3bef05c
commit 6bf07e3967
1 changed files with 2 additions and 2 deletions

View File

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