New Mocha Docs
Spurred on by Thorsten’s comment on Kevin Clark’s blog and a mention of Mocha in the Top 5 Rails Stories of the Week, I’ve given the Mocha documentation a major overhaul.
Now the RDoc only shows the public API which should hopefully improve the signal-to-noise ratio and show how simple it is to use.
- Create traditional mock objects
- Set expectations on traditional mock objects
- Set expectations on real (non-mock) classes
- Make expectations more specific or define behaviour of stub
I’ve also had a play with CodeRay and generated syntax-highlighted examples.
Good general information on mocking…