On Jul 14, 2006, at 5:13 AM, Patrick Spence wrote:

> I need to subclass Test::Unit::Assertions so I can log the  
> assertions as
> they are being, uhh... "asserted". The following is giving me a "parse
> error, unexpected '<'" on the line indicated below.

You can only subclass a class.

You really want to do one of:

Add methods to Test::Unit::Assertions

Make a custom Test::Unit::TestCase subclass with your new assertions

Write your own set of assertions and include it into  
Test::Unit::TestCase

I recommend the first or second.

-- 
Eric Hodel - drbrain / segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com