New Mocha Docs
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…