Method: Test::Unit::ExceptionHandler::ClassMethods#unregister_exception_handler
- Defined in:
- lib/test/unit/exception-handler.rb
#unregister_exception_handler(*method_name_or_handlers) ⇒ Object
68 69 70 71 72 73 74 75 76 77 78 |
# File 'lib/test/unit/exception-handler.rb', line 68 def unregister_exception_handler(*method_name_or_handlers) method_name_or_handlers.each do |method_name_or_handler| if method_name_or_handler.respond_to?(:call) handler = method_name_or_handler exception_handlers.delete(handler) else method_name = method_name_or_handler attribute(:exception_handler, false, {}, method_name) end end end |