From: Ron Jeffries Date: 2006-09-22T10:55:06+09:00 Subject: Re: testunit message override? On Thu, 21 Sep 2006 11:20:36 +0900, Logan Capaldo wrote: >> With the dates in a rather odd format, as you see above. Yet Date's to_s method >> is perfectly reasonable. >> >It's not calling Date#to_s, it's calling Date#inspect. I think you can >do: >assert_equal( a = Date.new(2006, 4, 15), b = calc.disbursal_date, > "Expected Date of #{a}, got date of #{b}") Ah. #inspect. I did know the trick of the message parm, but it still prints the inspect anyway. I would have liked to be rid of it, or to have the code call to_s. I suppose I could override inspect if I really care. Thanks! -- Ron Jeffries www.XProgramming.com I'm giving the best advice I have. You get to decide if it's true for you.