Sha256: 20e0c3fa3fa145cff80b954df152a1522219636ec12b8b639ee0d090a260d0b3
Contents?: true
Size: 591 Bytes
Versions: 4
Compression:
Stored size: 591 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 = []).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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
much-stub-0.1.10 | test/helper.rb |
much-stub-0.1.9 | test/helper.rb |
much-stub-0.1.8 | test/helper.rb |
much-stub-0.1.7 | test/helper.rb |