From: Sy Ali Date: 2006-05-14T20:15:54+09:00 Subject: Re: Forcing some code to run at the end of tests On 5/13/06, Mike Stok wrote: > Have you ever tried code like this: > > #!/usr/bin/env ruby > > foo = nil > END { puts "end #{foo}" } > puts "regular code" > foo = 'bar' > BEGIN { puts "begin" } > > Maybe an END block can help you (but be careful of bindings and > visibility...) Hey that's neat. But it works the same way that at_exit does.. and so my tests are run _after_ it. *boggle* Continuing to test. =)