From: John Wilger Date: 2006-05-03T09:00:28+09:00 Subject: Re: Unit test setup On 5/2/06, Eric Hodel wrote:> On May 2, 2006, at 1:38 PM, John Wilger wrote:> > class TestTheTestsTest < Test::Unit::TestCase> > def initialize( *args )> > super> > @foo = :bar> > end>> Eww, yuck. I didn't say it was pretty, just that it was possible. "Can't" and"shouldn't" are two different things, after all. (Of course, Stefanopointed out that I'm wrong about it being possible, too -- so maybethe only thing I've proven is that I'm good at talking out of my ass!:-D) > When I require an expensive setup per test invocation my code is> telling me it is not easily testable, so instead of hacking> Test::Unit I refactor. 100% agreed. --Regards,John Wilgerhttp://johnwilger.com -----------Alice came to a fork in the road. "Which road do I take?" she asked."Where do you want to go?" responded the Cheshire cat."I don't know," Alice answered."Then," said the cat, "it doesn't matter."- Lewis Carrol, Alice in Wonderland