Sha256: 5c43265b1ab9b429214a15b71c5af260d02da9fd41ccbbffacec1e96ffcc0b03
Contents?: true
Size: 576 Bytes
Versions: 3
Compression:
Stored size: 576 Bytes
Contents
# this file is automatically required when you run `assert` # put any test helpers here # add the root dir to the load path require 'pathname' ROOT_PATH = Pathname.new(File.expand_path('../..', __FILE__)) $LOAD_PATH.unshift(ROOT_PATH.to_s) TMP_PATH = ROOT_PATH.join('tmp') TEST_SUPPORT_PATH = ROOT_PATH.join('test/support') # 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ggem-1.8.4 | test/helper.rb |
ggem-1.8.3 | test/helper.rb |
ggem-1.8.1 | test/helper.rb |