Sha256: cd33271f6090d3ccc7edfc804d79635306d99fd0dd3aa5a6c674a80593808169

Contents?: true

Size: 748 Bytes

Versions: 9

Compression:

Stored size: 748 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, :development)

require 'toy'
require 'adapter/memory'
require 'support/constants'
require 'support/identity_map_matcher'
require 'support/name_and_number_key_factory'

Logger.new(log_path.join('test.log')).tap do |log|
  LogBuddy.init(:logger => log)
  Toy.logger = log
end

Rspec.configure do |c|
  c.include(Support::Constants)
  c.include(IdentityMapMatcher)

  c.before(:each) do
    Toy.clear
    Toy.reset
    Toy.key_factory = nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
toystore-0.8.2 spec/helper.rb
toystore-0.8.1 spec/helper.rb
toystore-0.8.0 spec/helper.rb
toystore-0.7.0 spec/helper.rb
toystore-0.6.6 spec/helper.rb
toystore-0.6.5 spec/helper.rb
toystore-0.6.4 spec/helper.rb
toystore-0.6.3 spec/helper.rb
toystore-0.6.2 spec/helper.rb