Sha256: 907c585b2644062eac47a867e0fc3b2acad90e27d99928e0595d9e34ca38ad76
Contents?: true
Size: 890 Bytes
Versions: 1
Compression:
Stored size: 890 Bytes
Contents
# $Id: setup.rb 12 2007-01-14 20:03:40Z tim_pease $ require 'test/unit' begin require 'logging' rescue LoadError require 'rubygems' require 'logging' end begin require 'turn' rescue LoadError require 'rubygems' begin; require 'turn'; rescue LoadError; end end module TestLogging module LoggingTestCase def setup super ::Logging.module_eval do ::Logging::LEVELS.clear ::Logging::LNAMES.clear remove_const :MAX_LEVEL_LENGTH if const_defined? :MAX_LEVEL_LENGTH remove_const :OBJ_FORMAT if const_defined? :OBJ_FORMAT end ::Logging::Repository.class_eval do @__instance__ = nil class << self nonce = class << Singleton; self; end define_method(:instance, nonce::FirstInstanceCall) end end end end # module LoggingTestCase end # module TestLogging # EOF
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logging-0.1.0 | test/setup.rb |