class Test::Unit::TestCase def teardown_with_stubba return if $stubba.nil? $stubba.unstub_all $stubba = nil end end