Sha256: 4d6e16e959c95cd74409fa3c3449fc283f238811365d8c3a4cbf2de2923d9721
Contents?: true
Size: 628 Bytes
Versions: 3
Compression:
Stored size: 628 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(:development) require 'toy/mongo' require 'support/constants' STORE = Mongo::Connection.new.db('testing')['toystore-mongo'] 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.before(:each) do STORE.remove end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
toystore-mongo-0.7.0 | spec/helper.rb |
toystore-mongo-0.6.0 | spec/helper.rb |
toystore-mongo-0.5.0 | spec/helper.rb |