Module: Test::Unit::PendingHandler
Relationships & Source Files | |
Defined in: | lib/test/unit/pending.rb |
Class Method Summary
Instance Method Summary
- #handle_pended_error(exception) private
Class Method Details
.included(base)
[ GitHub ]# File 'lib/test/unit/pending.rb', line 109
def included(base) base.exception_handler(:handle_pended_error) end
Instance Method Details
#handle_pended_error(exception) (private)
[ GitHub ]# File 'lib/test/unit/pending.rb', line 115
def handle_pended_error(exception) return false unless exception.is_a?(PendedError) pending = Pending.new(name, filter_backtrace(exception.backtrace), exception., :method_name => @method_name) add_pending(pending) true end