Sha256: f71d66a55824163659b1e400118f098a480ad96cf2234107708683f1d576ee17

Contents?: true

Size: 536 Bytes

Versions: 2

Compression:

Stored size: 536 Bytes

Contents

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

require 'pathname'

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

TEMPLATE_ROOT = ROOT.join('test/support/templates')

# 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
nm-0.5.4 test/helper.rb
nm-0.5.3 test/helper.rb