Sha256: 36624176c3efe93ab1b07c1f0bd83a0e23641bfc5100caf1fbd086b3d8416c58

Contents?: true

Size: 682 Bytes

Versions: 4

Compression:

Stored size: 682 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__))

TEST_SUPPORT_PATH = File.expand_path("../support", __FILE__)
TMP_PATH          = File.expand_path("../../tmp", __FILE__)

require 'logger'
log_path = File.expand_path("../../log/test.log", __FILE__)
TEST_LOGGER = Logger.new(File.open(log_path, 'w'))

# require pry for debugging (`binding.pry`)
require 'pry'
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

4 entries across 4 versions & 1 rubygems

Version Path
ardb-0.28.3 test/helper.rb
ardb-0.28.2 test/helper.rb
ardb-0.28.1 test/helper.rb
ardb-0.28.0 test/helper.rb