On Jan 15, 2006, at 8:47 PM, List Recv wrote: > Logan Capaldo wrote: >> I'm confused, why do you need to "reset" ruby everytime? Can't you >> stick the tests in a loop? > > The code - and it's require files - are constantly changing. (That's > the whole point of continuos testing!). I want to a) make sure to > reload all required files and b) make sure to start with a fresh > slate, > in terms of class definitions, ObjectSpace, and the like. > > -- > Posted via http://www.ruby-forum.com/. > Ok, so change the 'require's to 'load's and then stick it in a loop ;). In seriousness though, all the work involved with undefining everything, and you might as well just start a new ruby executable. Perhaps I'm not understanding you correctly, how would you do this with fork, and avoid the overhead of requiring things?