模块 Test::Unit::PendingHandler
公共类方法
included(base) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 110 def included(base) base.exception_handler(:handle_pended_error) end
私有实例方法
handle_pended_error(exception) 点击切换源代码
# File test-unit-3.6.7/lib/test/unit/pending.rb, line 116 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