Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: v0.5.0
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (23 sloc) 0.628 kb
$:.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
Jump to Line
Something went wrong with that request. Please try again.