From 955311bb959a58246e3dc3f5cf597b1d98948c0f Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Thu, 8 Aug 2019 21:38:49 -0600 Subject: [PATCH] Don't force Enumerable expected type Should duck type anyway. --- src/spectator/matchers/array_matcher.cr | 2 +- src/spectator/matchers/unordered_array_matcher.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spectator/matchers/array_matcher.cr b/src/spectator/matchers/array_matcher.cr index b994278..66594a9 100644 --- a/src/spectator/matchers/array_matcher.cr +++ b/src/spectator/matchers/array_matcher.cr @@ -9,7 +9,7 @@ module Spectator::Matchers struct ArrayMatcher(ExpectedType) < Matcher private getter expected - def initialize(@expected : TestValue(Enumerable(ExpectedType))) + def initialize(@expected : TestValue(ExpectedType)) end def description diff --git a/src/spectator/matchers/unordered_array_matcher.cr b/src/spectator/matchers/unordered_array_matcher.cr index 8c5ed49..9014aa1 100644 --- a/src/spectator/matchers/unordered_array_matcher.cr +++ b/src/spectator/matchers/unordered_array_matcher.cr @@ -6,7 +6,7 @@ module Spectator::Matchers struct UnorderedArrayMatcher(ExpectedType) < Matcher private getter expected - def initialize(@expected : TestValue(Enumerable(ExpectedType))) + def initialize(@expected : TestValue(ExpectedType)) end def description