Sha256: 5fe51f0c67eeeec6690323c8cd14af47552c452ef85682a3000b771fd5cde29a

Contents?: true

Size: 612 Bytes

Versions: 43

Compression:

Stored size: 612 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"

if Test::Unit::TestCase.respond_to? :test_order=
  Test::Unit::TestCase.test_order = :random
end

require File.expand_path("../../lib/logging", __FILE__)

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
end

end

Version data entries

43 entries across 36 versions & 4 rubygems

Version Path
vagrant-unbundled-2.2.9.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.8.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.7.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.7.0 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.6.2 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.6.1 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.6.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.5.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.6.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.4.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.3.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.2.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.2.0.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.1.4.0 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb
vagrant-unbundled-2.1.2.0 vendor/bundle/ruby/2.3.0/gems/logging-2.2.2/test/setup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/logging-2.2.2/test/setup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/logging-2.2.2/test/setup.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/logging-2.2.2/test/setup.rb