Sha256: 3dc6accc838dbe04fd234b86e03057ff0887e38ac2c5864824f8ffdee282b050
Contents?: true
Size: 778 Bytes
Versions: 4
Compression:
Stored size: 778 Bytes
Contents
$:.unshift(File.expand_path('../../lib', __FILE__)) require 'pathname' require 'logger' root_path = Pathname(__FILE__).dirname.join('..').expand_path lib_path = root_path.join('lib') log_path = root_path.join('log') log_path.mkpath require 'rubygems' require 'bundler' Bundler.require(:default, :test) require 'toy' require 'support/constants' require 'support/objects' require 'support/identity_map_matcher' require 'support/name_and_number_key_factory' Logger.new(log_path.join('test.log')).tap do |log| Toy.logger = log end RSpec.configure do |c| c.include(Support::Constants) c.include(Support::Objects) c.include(IdentityMapMatcher) c.before(:each) do Toy::IdentityMap.enabled = false Toy.clear Toy.reset Toy.key_factory = nil end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
toystore-0.10.3 | spec/helper.rb |
toystore-0.10.2 | spec/helper.rb |
toystore-0.10.1 | spec/helper.rb |
toystore-0.10.0 | spec/helper.rb |