Sha256: ea4eb8fb05370f942a10192b50a0dbae38f80fbaee801d762cdd4fc390c1eeb0
Contents?: true
Size: 631 Bytes
Versions: 8
Compression:
Stored size: 631 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) TEST_SUPPORT_PATH = ROOT.join('test/support') TEMPLATE_ROOT = TEST_SUPPORT_PATH.join('templates') TEMPLATE_CACHE_ROOT = ROOT.join('tmp/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
8 entries across 8 versions & 2 rubygems