From: Frederick Cheung Date: 2008-08-02T08:46:03+09:00 Subject: Re: unit testing advice On 1 Aug 2008, at 23:03, Shadowfirebird wrote: > Many thanks. Clearly I'm going to have to go back to research mode on > this one. > > I've found this lovely bit of example code for mocha, though -- see > below. If I understand you correctly, you seem to be saying that you > *don't* test the output routine; you use a mock to fake it so that you > can test the rest of the code? >> The following article is well worth reading: http://martinfowler.com/articles/mocksArentStubs.html Fred