From 6cd410c4c70713625b361566ebcd530fcbe46d88 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 16 Nov 2019 08:32:13 -0700 Subject: [PATCH] Allow expected value to receive stub --- src/spectator/expectations/expectation_partial.cr | 1 + 1 file changed, 1 insertion(+) diff --git a/src/spectator/expectations/expectation_partial.cr b/src/spectator/expectations/expectation_partial.cr index 31606b2..568f76f 100644 --- a/src/spectator/expectations/expectation_partial.cr +++ b/src/spectator/expectations/expectation_partial.cr @@ -25,6 +25,7 @@ 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)