Sha256: b77a99ce46e9216c8ae8ee8426aff74847e6c1ab5ab9fa56a6923776e3bfbb33
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true # 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 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 # unstub all test stubs automatically for Assert test suite require "assert" class Assert::Context teardown{ MuchStub.unstub! } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
much-stub-0.1.6 | test/helper.rb |