From: Chris Morris Date: 2003-07-17T09:36:18+09:00 Subject: Re: Test::Unit no tests specified Another option is to override #default_test in your superclass with a do-nothing method - this will eliminate the failure (but note that it will eliminate it for all your subclasses, too). If you wanted to be really fancy, you could even do something like this (not tested): class MySuperTest < Test::Unit::TestCase def default_test super unless(self.class == MySuperTest) end end ---- I didn't have my Ruby hat on tight enough to think of that. That or the module option should work fine. ----- Well, I don't think this is possible (although I know someone will prove me wrong as soon as I say that). How can one know if a method is empty? There's no way I know of to determine it without walking the AST (which would definitely fall under non-trivial). ----- Hadn't thought of that. DUnit (Delphi) can do this with a cool little assembler trick -- I'd gotten used to the behavior there forgetting how it was done. Thanks for the reply. Chris