test/test_helper.rb in mongo_mapper-0.11.1 vs test/test_helper.rb in mongo_mapper-0.11.2
- old
+ new
@@ -4,11 +4,11 @@
$:.unshift File.expand_path('../../lib', __FILE__)
require 'mongo_mapper'
require 'fileutils'
require 'ostruct'
-Bundler.require(:development)
+Bundler.require(:default, :test)
class Test::Unit::TestCase
def Doc(name='Class', &block)
klass = Class.new
klass.class_eval do
@@ -86,9 +86,8 @@
log_dir = File.expand_path('../../log', __FILE__)
FileUtils.mkdir_p(log_dir) unless File.exist?(log_dir)
logger = Logger.new(log_dir + '/test.log')
-LogBuddy.init(:logger => logger)
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => logger)
MongoMapper.database = "test"
MongoMapper.database.collections.each { |c| c.drop_indexes }