Workaround issue with value not being found

For some reason the `value` method isn't found.
Event casting to TypedStub doesn't work.
This commit is contained in:
Michael Miller 2022-03-19 20:00:50 -06:00
parent bed84b315d
commit 04f3614ff7
No known key found for this signature in database
GPG key ID: AC78B32D30CE34A2

View file

@ -42,7 +42,7 @@ module Spectator
# A method that was not defined during initialization was stubbed.
# Return the value of the stub as-is.
# Might want to give a warning here, as this may produce a "bloated" union of all known stub types.
%stub.value
%stub.as(::Spectator::ValueStub).value
\{% end %}
else
# A stub wasn't found, invoke the fallback logic.