mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
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:
parent
c9fb4d2d33
commit
8dbfb2d6ec
1 changed files with 0 additions and 1 deletions
|
@ -25,7 +25,6 @@ module Spectator::Expectations
|
||||||
end
|
end
|
||||||
|
|
||||||
def to(stub : Mocks::MethodStub) : Nil
|
def to(stub : Mocks::MethodStub) : Nil
|
||||||
Mocks::Allow.new(@actual.value).to(stub)
|
|
||||||
value = TestValue.new(stub.name, stub.to_s)
|
value = TestValue.new(stub.name, stub.to_s)
|
||||||
matcher = if (arguments = stub.arguments?)
|
matcher = if (arguments = stub.arguments?)
|
||||||
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
Matchers::ReceiveArgumentsMatcher.new(value, arguments)
|
||||||
|
|
Loading…
Reference in a new issue