X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=ruby%2Flib%2Fruby%2Fgems%2F1.8%2Fgems%2Factiveldap-1.2.1%2Ftest-unit%2Flib%2Ftest%2Funit%2Fexceptionhandler.rb;fp=ruby%2Flib%2Fruby%2Fgems%2F1.8%2Fgems%2Factiveldap-1.2.1%2Ftest-unit%2Flib%2Ftest%2Funit%2Fexceptionhandler.rb;h=0000000000000000000000000000000000000000;hb=80a647f166ccf0ef42768dcda8135b1d405dc15e;hp=8f21318125132f7496098e45f669aad10292958a;hpb=05ad905dae7df28a0baeee7739c8aab3de34c138;p=redminele%2Fredminele.git diff --git a/ruby/lib/ruby/gems/1.8/gems/activeldap-1.2.1/test-unit/lib/test/unit/exceptionhandler.rb b/ruby/lib/ruby/gems/1.8/gems/activeldap-1.2.1/test-unit/lib/test/unit/exceptionhandler.rb deleted file mode 100644 index 8f21318..0000000 --- a/ruby/lib/ruby/gems/1.8/gems/activeldap-1.2.1/test-unit/lib/test/unit/exceptionhandler.rb +++ /dev/null @@ -1,39 +0,0 @@ -module Test - module Unit - module ExceptionHandler - @@exception_handlers = [] - class << self - def exception_handlers - @@exception_handlers - end - - def included(base) - base.extend(ClassMethods) - - observer = Proc.new do |test_case, _, _, value, method_name| - if value - @@exception_handlers.unshift(method_name) - else - @@exception_handlers -= [method_name] - end - end - base.register_attribute_observer(:exception_handler, &observer) - end - end - - module ClassMethods - def exception_handlers - ExceptionHandler.exception_handlers - end - - def exception_handler(*method_names) - attribute(:exception_handler, true, *method_names) - end - - def unregister_exception_handler(*method_names) - attribute(:exception_handler, false, *method_names) - end - end - end - end -end