From 8dbfb2d6ec6c9f2a66064546bc1ee114490ac219 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 16 Nov 2019 09:23:45 -0700 Subject: [PATCH] Revert "Allow expected value to receive stub" This reverts commit 6cd410c4c70713625b361566ebcd530fcbe46d88. Should not stub the method. The end-user needs to do this. --- src/spectator/expectations/expectation_partial.cr | 1 - 1 file changed, 1 deletion(-) diff --git a/src/spectator/expectations/expectation_partial.cr b/src/spectator/expectations/expectation_partial.cr index e1cf903..696d54c 100644 --- a/src/spectator/expectations/expectation_partial.cr +++ b/src/spectator/expectations/expectation_partial.cr @@ -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)