Sha256: 34cf1134f4c948158852426ba59811c2b51968dba801e4d4b7b2f2c6afa3b0ef
Contents?: true
Size: 754 Bytes
Versions: 15
Compression:
Stored size: 754 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 # LoggingTestCase end # TestLogging end # defined?
Version data entries
15 entries across 15 versions & 4 rubygems