mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Add spec for ExceptionMatcher
This commit is contained in:
parent
244947a81d
commit
f2558fd09e
3 changed files with 210 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue