mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Placeholders for delayed message expectation
This commit is contained in:
parent
20f68e956d
commit
233e9573de
1 changed files with 8 additions and 0 deletions
|
@ -24,6 +24,10 @@ module Spectator::Expectations
|
|||
report(match_data)
|
||||
end
|
||||
|
||||
def to(stub : Mocks::MethodStub) : Nil
|
||||
raise NotImplementedError.new("`expect(double).to receive(message)` syntax not implemented yet")
|
||||
end
|
||||
|
||||
# Asserts that some criteria defined by the matcher is not satisfied.
|
||||
# This is effectively the opposite of `#to`.
|
||||
def to_not(matcher) : Nil
|
||||
|
@ -31,6 +35,10 @@ module Spectator::Expectations
|
|||
report(match_data)
|
||||
end
|
||||
|
||||
def to_not(stub : Mocks::MethodStub) : Nil
|
||||
raise NotImplementedError.new("`expect(double).to_not receive(message)` syntax not implemented yet")
|
||||
end
|
||||
|
||||
# ditto
|
||||
@[AlwaysInline]
|
||||
def not_to(matcher) : Nil
|
||||
|
|
Loading…
Reference in a new issue