From: pat eyler Date: 2005-06-08T22:09:56+09:00 Subject: Re: new article On 6/8/05, Neville Burnell wrote: > And finally, I'd like to see more detail about Mock fixtures ... > > I'm a Mock newbie and it would be nice to include the DATA and the test > run details showing a full mock test example. > [ ...] > > On pg 18 of the PDF now which talks about unit_diff, and I'm unclear > about the before & after results ... > > May I suggest clearly labelling this section for example: > > Standard test run: > ... > > With unit_diff: > ... > > [...] > > Hi, > > I'm just reading the PDF and on pg 13 you flesh out the echo() method, > but the def doesn't include any parameters, in particular it should [I > think] be: > > Def echo(url) > > So the echo method as documented should fail, correct ? > > Nev > All good points (though it's a different error on page 13 as noted by Ghislain). There are a couple of code errors in the book that were introduced during copying from the r43 source. If you want to look at the actual code and tests, you might want to download that from rubyforge. I'm not able to change the tutorial at IBM, but I will be republishing the article in the near future and I'll be incorporating the corrections (and many of the suggestions) from this thread when I do so. -- thanks, -pate ------------------------- We are often unable to tell people what they need to know, because they want to know something else, and would therefore only misunderstand what we said - the Raven (George MacDonald, Lilith)