mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Fix returned type inferred to NoReturn
This commit is contained in:
parent
d6c1169bc3
commit
c710961be1
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ module Spectator::Mocks
|
|||
::Spectator::Harness.current.mocks.record_call(self, call)
|
||||
if (stub = ::Spectator::Harness.current.mocks.find_stub(self, call))
|
||||
stub.call!(args) do
|
||||
@values.fetch({{call.name.symbolize}}) { raise "Consistency error - method stubbed with no implementation" }
|
||||
@values.fetch({{call.name.symbolize}}) { raise "Consistency error - method stubbed with no implementation"; nil }
|
||||
end
|
||||
else
|
||||
@values.fetch({{call.name.symbolize}}) do
|
||||
|
|
Loading…
Reference in a new issue