From: Nobuyoshi Nakada Date: 2007-09-01T10:06:23+09:00 Subject: Re: Unable to change output of test suite 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