From: Sy Ali Date: 2006-05-14T19:13:33+09:00 Subject: Re: Forcing some code to run at the end of tests Thanks for the ideas everyone.. I did think of using an end block or ensure, but these seemed unclean to me. I wondered if there was a feature similar to setup/teardown for doing stuff on exit. Doing the test stuff manually to force the order tests and other code is executed in.. I tried and failed at.. I knew how to run my tests manually but they were being pulled out from the actual scoring. Those examples help a lot. I'll need to keep these in mind if ever I need to run multiple tests in a specific order (hopefully never!) I think by far the easiest solution is Kernel#at_exit .. it totally slipped my mind!