Sha256: 6297e67e8f39ad11cc0aef8c2f062cdad58f623a3cfdb7d85611c319fd902518

Contents?: true

Size: 703 Bytes

Versions: 3

Compression:

Stored size: 703 Bytes

Contents

# this file is automatically required when you run `assert`
# put any test helpers here

# add the root dir to the load path
$LOAD_PATH.unshift(File.expand_path("../..", __FILE__))

# require pry for debugging (`binding.pry`)
require 'pry'

require 'pathname'
ROOT_PATH = Pathname.new(File.expand_path('../..', __FILE__))

require 'logger'
TEST_LOGGER = if ENV['DEBUG']
  # don't show datetime in the logs
  Logger.new(ROOT_PATH.join("log/test.log")).tap{ |l| l.datetime_format = '' }
end

JOIN_SECONDS = 0.001

require 'test/support/factory'

# 1.8.7 backfills

# Array#sample
if !(a = Array.new).respond_to?(:sample) && a.respond_to?(:choice)
  class Array
    alias_method :sample, :choice
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dat-worker-pool-0.6.3 test/helper.rb
dat-worker-pool-0.6.2 test/helper.rb
dat-worker-pool-0.6.1 test/helper.rb