Sha256: 00d660ccb1dd30f5a608a4efa8a2b5cb65afb11888f8aa79b5581327aa762dff

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'

require 'minitest/autorun'
require 'minitest/reporters'
require 'minitest/stub_any_instance'
require 'shoulda/context'
require 'parallel_minion'
require 'semantic_logger'

Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new

# Register an appender if one is not already registered
SemanticLogger.default_level = :trace
SemanticLogger.add_appender('test.log', &SemanticLogger::Appender::Base.colorized_formatter) if SemanticLogger.appenders.size == 0

# Setup global callback for metric so that it can be tested below
SemanticLogger.on_metric do |log_struct|
  $log_struct = log_struct.dup
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
parallel_minion-1.1.0 test/test_helper.rb