From: Leslie Viljoen Date: 2006-11-22T07:52:21+09:00 Subject: Re: Ruby unit testing On 11/21/06, Chris Gallagher wrote: > Hi, > > I have a ruby script that I would like to apply unit testing against but > Ive never actually created any previously and the documentation is not > bad but im struggling to apply it to my own code. > > Could someone give a couple of examples of how unit testing might be > applied to the following code just to get me started on it. I don't have time to look at your code now, but maybe someone will pitch in, or I'll look in the morning. I also had trouble getting into unit testing so I eventually bought a book and made a good study of it. I can recommend the book. Even though it covers C#, it's mostly generic info: http://www.pragmaticprogrammer.com/titles/utc2/ I love the pragmatic programmer books. Every time I buy one I'm impressed. My all-time favourite one is "The Pragmatic Programmer: Journeyman to Master". I think all programmers should read that book. Les