Sha256: 4515ddcd1595c9bb7784caaad098fdc19d0cd755269d6e66dd29dde953d872fc

Contents?: true

Size: 573 Bytes

Versions: 5

Compression:

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

ENV['SANFORD_PROTOCOL_DEBUG'] = 'yes'

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

require 'test/support/factory'

JOIN_SECONDS = 0.1

# 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

5 entries across 5 versions & 1 rubygems

Version Path
sanford-0.19.1 test/helper.rb
sanford-0.19.0 test/helper.rb
sanford-0.18.2 test/helper.rb
sanford-0.18.1 test/helper.rb
sanford-0.18.0 test/helper.rb