Sha256: 5116cea3f066c40d2ea521dad1536f12117bb0641f5b678a9644e45b134765cd

Contents?: true

Size: 453 Bytes

Versions: 2

Compression:

Stored size: 453 Bytes

Contents

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

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

# 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

2 entries across 2 versions & 1 rubygems

Version Path
assert-2.15.2 test/helper.rb
assert-2.15.1 test/helper.rb