freerange/mocha — pull request #89 by kou (2012-07-08 00:49:34+00:00)
Title: Use test-unit's cleanup hook instead of monkey patching

test-unit supports cleanup hook since v2.3.0. [1][2]
Mocha can use it for verifying. It is more maintainable way rather than
overriding `run` method because cleanup hook is public API.

test-unit-rr, RR adapter for test-unit, also uses the cleanup hook. [3]

This change supports test-unit v2.5.1. It is the latest version.

[1] http://test-unit.rubyforge.org/test-unit/en/file.news.html#2_3_0___2011-04-17
[2] "Overview" section in http://test-unit.rubyforge.org/test-unit/en/Test/Unit/TestCase.html
[3] https://github.com/test-unit/test-unit-rr/blob/master/lib/test/unit/rr.rb