You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the idea of this syntax. It doesn't seem to work for me however, and reading the source code it doesn't look like that method is capturing the block or yielding when it is called?
Is the documentation wrong?
The text was updated successfully, but these errors were encountered:
Yes, it is deprecated behaviour and the documentation is out-of-date. See #290 for details. Thanks for drawing this to our attention. I've opened a new issue to capture updating the docs.
Would using Object#tap help you do what you want?
Anyway, we're not going to reinstate this deprecated behaviour and so I'm going to close this issue. Hope that's OK.
There are places in the documentation which show the
mock
method being called with a blockhttps://github.com/freerange/mocha/blob/main/lib/mocha/api.rb#L202-L206
I love the idea of this syntax. It doesn't seem to work for me however, and reading the source code it doesn't look like that method is capturing the block or yielding when it is called?
Is the documentation wrong?
The text was updated successfully, but these errors were encountered: