From: Logan Capaldo Date: 2006-01-16T14:45:46+09:00 Subject: Re: Resetting ruby On Jan 16, 2006, at 12:39 AM, Jacob Fugal wrote: > On 1/15/06, Logan Capaldo wrote: >> >> Ok, so change the 'require's to 'load's and then stick it in a >> loop ;). > > That's not quite sufficient. 'load' simply loads the file again. It > doesn't replace the result of previously loading the file. So if the > "signature" of the file is the same (all the same classes, methods, > variables, etc. declared only with different values/implementations) > you're good. But in the more frequent case where the signature changes > in a non-additive way (e.g. a method is removed), that change is *not* > propagated by a new load. That means the method that was removed is > still available within the test script, which may cause some tests to > pass which should fail and would fail if run under a new instance. > > Jacob Fugal > I know, hence the smiley face. I still think this idea is a little extreme for the minor savings you'd get out of it.