Sha256: aa59d7e344e9ebe412d61bb10909e1e4a8b3e97fe190667adf5ba4b317bda98c
Contents?: true
Size: 663 Bytes
Versions: 4
Compression:
Stored size: 663 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' require 'support/callbacks_helper' 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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
toystore-mongo-0.9.0 | spec/helper.rb |
toystore-mongo-0.8.2 | spec/helper.rb |
toystore-mongo-0.8.1 | spec/helper.rb |
toystore-mongo-0.8.0 | spec/helper.rb |