Hi,
I'm migrating the ruby framework that I have from Ruby 1.8.7 to 2.0
In my framework I have some code inside the block at_exit so it will run
after all Ruby code has run... and in 1.8.7 works perfectly when running
any kind of code or even testcases Test::Unit::TestCase, the code was
something like:

require 'my_framework' #at_exit is in my framework

MyTestCase < Test::Unit::TestCase
  def test01
    puts "my first test"
  end
  def test02
    puts "my second test"
  end
end

So when it was run the result was:

my first test
my second test
I'm in the at_exit block

But now in Ruby 2 the at_exit block is run before the testcases:
I'm in the at_exit block
my first test
my second test


Any idea how can i have the at_exit like it was before?

Thanks in advance.

-- 
Posted via http://www.ruby-forum.com/.