Sha256: 6bb6d6464a177108254f0a437f20e966ba71f2d589348462b25765df6d92c2a6

Contents?: true

Size: 633 Bytes

Versions: 3

Compression:

Stored size: 633 Bytes

Contents

# encoding: utf-8
require 'rubygems'
require 'rspec'
require 'mongoid'
require 'mongoid_max_denormalize'
require 'logger'

Mongoid.configure do |config|
  config.connect_to('mongoid_max_denormalize_test')
end

Mongoid.logger = Logger.new("log/mongoid-test.log")
Mongoid.logger.level = Logger::DEBUG
Moped.logger = Logger.new("log/moped-test.log")
Moped.logger.level = Logger::DEBUG

RSpec.configure do |config|

  # Drop all collections and clear the identity map before each spec.
  config.before(:each) do
    Moped.logger.info("\n  ### " << example.full_description)

    Mongoid.purge!
    Mongoid::IdentityMap.clear
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid_max_denormalize-0.0.5 spec/spec_helper.rb
mongoid_max_denormalize-0.0.4 spec/spec_helper.rb
mongoid_max_denormalize-0.0.3 spec/spec_helper.rb