freerange / mocha

A mocking and stubbing library for Ruby
https://mocha.jamesmead.org
Other
1.23k stars 158 forks source link

Improve docs for `Expectation#with` when it takes a block argument #682

Open floehopper opened 4 days ago

floehopper commented 4 days ago

The current docs don't mention the block argument in the method description, although there is an example of its use and it does appear in the list of arguments.

It might also be worth saying there are no guarantees that the matcher won't be called more than once per invocation...?