Sha256: 95fcb370ec3f409d25a0f6baf6da35e4fa16f7048324f9c34a2940d2fd76a35a
Contents?: true
Size: 785 Bytes
Versions: 5
Compression:
Stored size: 785 Bytes
Contents
# Equivalent to a header guard in C/C++ # Used to prevent the class/module from being loaded more than once unless defined? LOGGING_TEST_SETUP LOGGING_TEST_SETUP = true require 'rubygems' require 'test/unit' begin require 'turn' rescue LoadError; end # This line is needed for Ruby 1.9 -- hashes throw a "KeyError" in 1.9 # whereas they throw an "IndexError" in 1.8 # KeyError = IndexError if not defined? KeyError require File.join(File.dirname(__FILE__), %w[.. lib logging]) module TestLogging module LoggingTestCase TMP = 'tmp' def setup super Logging.reset FileUtils.rm_rf TMP FileUtils.mkdir TMP end def teardown super FileUtils.rm_rf TMP end end # module LoggingTestCase end # module TestLogging end # unless defined? # EOF
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
logging-1.5.1 | test/setup.rb |
logging-1.5.0 | test/setup.rb |
logging-1.4.3 | test/setup.rb |
sgeorgi-logging-1.4.2 | test/setup.rb |
logging-1.4.2 | test/setup.rb |