Sha256: 9aacacbcc34cf4b90fdf1a45cb14e0f25c5ac97ac63b0417c4211356c59bfef1

Contents?: true

Size: 828 Bytes

Versions: 5

Compression:

Stored size: 828 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__) + '/../lib/mongo_mapper'))

gem 'jnunemaker-matchy', '0.4.0'
gem 'shoulda', '2.10.2'
gem 'timecop', '0.3.1'
gem 'mocha', '0.9.4'

require 'matchy'
require 'shoulda'
require 'timecop'
require 'mocha'
require 'pp'

require 'support/custom_matchers'
require 'support/test_timing'

class Test::Unit::TestCase
  include CustomMatchers
  
  def clear_all_collections
    MongoMapper::Document.descendants.map { |d| d.collection.clear }
  end
end

DefaultDatabase = 'test' unless defined?(DefaultDatabase)
AlternateDatabase = 'test2' unless defined?(AlternateDatabase)

logger = Logger.new(File.expand_path(File.dirname(__FILE__) + '/../tmp/test.log'))
MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017, :logger => logger)
MongoMapper.database = DefaultDatabase

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
mongo_mapper-0.5.6 test/test_helper.rb
djsun-mongo_mapper-0.5.5.3 test/test_helper.rb
mongo_mapper-unstable-2009.10.16 test/test_helper.rb
djsun-mongo_mapper-0.5.5.2 test/test_helper.rb
mongo_mapper-0.5.5 test/test_helper.rb