From: Yossef Mendelssohn Date: 2007-09-02T00:33:14+09:00 Subject: Re: Unable to change output of test suite On Aug 31, 8:06 pm, Nobuyoshi Nakada wrote: > Hi, > > At Sat, 1 Sep 2007 06:34:14 +0900, > Yossef Mendelssohn wrote in [ruby-talk:266993]:> require 'test/unit' > > require 'test/unit/testresult' > > > > > class Test::Unit::TestResult > > def to_s() 'this should be different'; end > > end > > > class WeirdnessTest < Test::Unit::TestCase > > end > > test/unit.rb just defines Test::Unit, but not TestResult, and > test/unit/testresult.rb isn't loaded until any TestRunner > libraris get loaded. So your TestResult is overridden by the > true TestResult definition. > > -- > Nobu Nakada Of course it had to be something simple like that. Thank you very much. -- -yossef