test/helper.rb in dat-worker-pool-0.5.0 vs test/helper.rb in dat-worker-pool-0.6.0

- old
+ new

@@ -5,6 +5,19 @@ $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' + # TODO: put test helpers here...