From: Daniel Harple Date: 2006-05-14T07:26:23+09:00 Subject: Re: Forcing some code to run at the end of tests On May 13, 2006, at 11:44 PM, Sy Ali wrote: > I'm playing with some test scripts, and I cannot for the life of me > ensure that a block of code is run after every test is run. I can > think of some ugly ways to do it.. but is there an elegant way which I > missed? Use the teardown method: def teardown # ... end This is mentioned in the docs: http://www.ruby-doc.org/stdlib/libdoc/ test/unit/rdoc/classes/Test/Unit.html -- Daniel