Module: Test::Unit::OmissionHandler
Relationships & Source Files | |
Defined in: | lib/test/unit/omission.rb |
Class Method Summary
Instance Method Summary
- #handle_omitted_error(exception) private
Class Method Details
.included(base)
[ GitHub ]# File 'lib/test/unit/omission.rb', line 153
def included(base) base.exception_handler(:handle_omitted_error) end
Instance Method Details
#handle_omitted_error(exception) (private)
[ GitHub ]# File 'lib/test/unit/omission.rb', line 159
def handle_omitted_error(exception) return false unless exception.is_a?(OmittedError) omission = Omission.new(name, filter_backtrace(exception.backtrace), exception., :method_name => @method_name) add_omission(omission) true end