From: Rein Henrichs Date: 2010-06-11T01:40:06+09:00 Subject: Re: Question about testing self.inherited On 2010-06-10 09:30:24 -0700, Jes�s Gabriel y Gal�n said > When I run these tests, the second one fails, probably is running > before the other one, defining the class, I guess. Is there a good way > to test these cases that I'm not seeing? Is the above strategy a good > one to keep track of existing subclasses of the Game class? I am using > the available games to create a menu for the user to choose which game > to play. > > Thanks, > > Jesus. Write a method to clear your available_games array for testing and use it in the setup. -- Rein Henrichs http://puppetlabs.com http://reinh.com