Placeholders for delayed message expectation

This commit is contained in:
Michael Miller 2019-11-11 22:36:29 -07:00
parent 20f68e956d
commit 233e9573de

View file

@ -24,6 +24,10 @@ module Spectator::Expectations
report(match_data) report(match_data)
end 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. # Asserts that some criteria defined by the matcher is not satisfied.
# This is effectively the opposite of `#to`. # This is effectively the opposite of `#to`.
def to_not(matcher) : Nil def to_not(matcher) : Nil
@ -31,6 +35,10 @@ module Spectator::Expectations
report(match_data) report(match_data)
end end
def to_not(stub : Mocks::MethodStub) : Nil
raise NotImplementedError.new("`expect(double).to_not receive(message)` syntax not implemented yet")
end
# ditto # ditto
@[AlwaysInline] @[AlwaysInline]
def not_to(matcher) : Nil def not_to(matcher) : Nil