From: "Florian Groß" Date: 2005-11-23T03:56:51+09:00 Subject: Re: Proposed new feature: Drop to debugger on failed test Ryan Leavengood wrote: >>I have thought about doing it with ruby-breakpoint, but it turned out >>that I would have to replace the definition of all the assertion methods >>from Test::Unit which was a bit too much overhead. >> >>If anyone has a better idea of how to accomplish this I would be very >>happy to integrate it. > > How about adding your own initialize to AssertionFailedError? > > class AssertionFailedError < StandardError > def initialize(*a) > super(*a) > # Do your stuff here > end > end Hm, do I have access to the type of the failed assertion from there?