From: Guillaume Marcais Date: 2004-05-08T02:44:11+09:00 Subject: Re: test unit & singleton Not really the answer I prefer :( I'll follow your advice. Thanks, Guillaume. On Fri, 2004-05-07 at 12:29, Nathaniel Talbott wrote: > 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. > > <:((>< > >