[mocha-developer] Organizing tests and mocha expectations

James Mead jamesmead44 at gmail.com
Tue Oct 10 04:30:35 EDT 2006

On 09/10/06, Bryan Helmkamp <bhelmkamp at gmail.com> wrote:
> One consideration I'd like to throw out there is the duplication of
> the returned value (or, equivalently, the raised exception).  For my
> original example, I don't see a need to re-specify the results for the
> save!() and find() calls when I add my expectations.

Good point. Actually going with suggestion 3 would mean you didn't need to
repeat anything - basically the key difference for this case is that you
have a means of modifying an existing expectation - in particular the
ability to make it assert (and perhaps to stop it asserting).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mocha-developer/attachments/20061010/3bbe1a47/attachment.html 

More information about the mocha-developer mailing list