Implement ExpectationResults specs and fix typo

This commit is contained in:
Michael Miller 2018-10-19 16:27:59 -06:00
parent 703a791f78
commit 67e192edc6
3 changed files with 109 additions and 24 deletions

View file

@ -27,7 +27,7 @@ module Spectator::Expectations
end
# Returns a collection of only the failed expectation results.
def failures : Enumerables(Expectation::Result)
def failures : Enumerable(Expectation::Result)
@results.select(&.failure?)
end