mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Registry#expect takes a stub
This commit is contained in:
parent
a38625f8a7
commit
16625cf495
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ module Spectator::Mocks
|
|||
|
||||
def to(stub : MethodStub) : Nil
|
||||
actual = TestValue.new(T)
|
||||
Harness.current.mocks.expect(T, stub.name)
|
||||
Harness.current.mocks.expect(T, stub)
|
||||
value = TestValue.new(stub.name, stub.to_s)
|
||||
matcher = Matchers::ReceiveTypeMatcher.new(value, stub.arguments?)
|
||||
partial = Expectations::ExpectationPartial.new(actual, @source)
|
||||
|
|
Loading…
Reference in a new issue