Revert "Allow expected value to receive stub"

This reverts commit 6cd410c4c7.

Should not stub the method.
The end-user needs to do this.
This commit is contained in:
Michael Miller 2019-11-16 09:23:45 -07:00
parent c9fb4d2d33
commit 8dbfb2d6ec

View file

@ -25,7 +25,6 @@ module Spectator::Expectations
end
def to(stub : Mocks::MethodStub) : Nil
Mocks::Allow.new(@actual.value).to(stub)
value = TestValue.new(stub.name, stub.to_s)
matcher = if (arguments = stub.arguments?)
Matchers::ReceiveArgumentsMatcher.new(value, arguments)