module Test::Unit::PendingHandler
def handle_pended_error(exception)
def handle_pended_error(exception) return false unless exception.is_a?(PendedError) pending = Pending.new(name, filter_backtrace(exception.backtrace), exception.message, :method_name => @method_name) add_pending(pending) true end
def included(base)
def included(base) base.exception_handler(:handle_pended_error) end