--20cf307c9e2253fb9604a8d169cc
Content-Type: text/plain; charset=ISO-8859-1

On Sun, Jul 24, 2011 at 6:13 AM, Mario Ruiz <tcblues / gmail.com> wrote:

> I need to run some code always on the last testcase that is run in any
> testsuite
>
>
> How could I know that I'm running the last test case?
>
> --
> Posted via http://www.ruby-forum.com/.
>
>
If this isn't what you're trying to do, then you need to take some time to
make it more explicit, because there are a lot of potential interpretations
for what you asked.


at_exit { puts "After last test" }

require 'test/unit'
class TestSuite < Test::Unit::TestCase
  def last_test
    puts "Last test"
  end
end

--20cf307c9e2253fb9604a8d169cc--