From: Samuel Tesla Date: 2003-12-11T04:22:01+09:00 Subject: How to unit test finalizers? matz@ruby-lang.org (Yukihiro Matsumoto) writes: > Nothing. There's no way to "ensure" instance to be GC'ed except for > program termination. That's a weak (or charm) point of Ruby's GC. That's fine. I'm guessing that the GC will eventually, most likely, collect those references. The question then becomes, how can I reliably unit test my finalizer code if I can't reliably get it to execute? Any ideas? Thanks, Samuel