Add spec for ExceptionMatcher

This commit is contained in:
Michael Miller 2019-03-21 22:50:02 -06:00
parent 244947a81d
commit f2558fd09e
3 changed files with 210 additions and 1 deletions

View file

@ -8,6 +8,10 @@ def new_partial(actual : T = 123) forall T
Spectator::Expectations::ValueExpectationPartial.new(actual, __FILE__, __LINE__)
end
def new_block_partial(label = "BLOCK", &block)
Spectator::Expectations::BlockExpectationPartial.new(block, label, __FILE__, __LINE__)
end
def new_matcher(expected : T, label : String) forall T
Spectator::Matchers::EqualityMatcher.new(expected, label)
end