title: Ruby unit tests: run some code after each failed test
body: <p>Is there some clean and elegant way to execute my code right after a failed assert in ruby unit tests in <code>Test::Unit</code>, before <code>teardown</code> gets executed?</p>
  
  <p>I am doing some automated GUI testing and would like to take a screenshot right after something failed.</p>