From: Nathaniel Talbott Date: 2004-05-08T01:29:56+09:00 Subject: Re: test unit & singleton On May 7, 2004, at 11:09, Gennady wrote: > That's why you want to avoid singletons as much as possible when it > comes to unit testing. Perhaps we should rename singleton.rb to hardtotest.rb :-/ > In cases I do need singletons, I usually end up with a regular class > that can be unit tested, and a separate singleton class that simply > delegates all calls to my actual class. Or something similar. That would be my suggestion as well. Nathaniel Terralien, Inc. <:((><