Don't force Enumerable expected type

Should duck type anyway.
This commit is contained in:
Michael Miller 2019-08-08 21:38:49 -06:00
parent eef7e9ce3c
commit 955311bb95
2 changed files with 2 additions and 2 deletions

View file

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

View file

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