Ben Giddings said:
>>> catching typos, like calling the class variable @my_var, but ending up
>>> using it as @myvar.

John Johnson said:
>> Test First Design?

Ben Giddings said:
> Ok, but compare:
> "Test 473 failed: expecting 17, got 18"
> with
> "warning: on line 765 of myfile.rb: @myvar may not have been initialized"

Granted, but a good unit test wouldn't be testing much more than a small
segment of your code; really no more than a single method.  After seeing
which test failed, it should be fairly simple to track down the method &
see the line with the error.

Now, if the method being tested has >765 lines in it... that's a whole
other problem! :)

-Ryan

PS - Hey Ruby-ists... I guess now I'm officially not "just lurking" the
mailing list.  Hello!


-- 
Ryan Dlugosz
ryan / dlugosz.net

http://dlugosz.net