Sha256: f2534fb180b5f05d405240c0e7ab6ce8c6f225d63a952de9bd1ebea26a30ba6a
Contents?: true
Size: 527 Bytes
Versions: 3
Compression:
Stored size: 527 Bytes
Contents
require "rubygems" require "bundler/setup" require 'rspec' require 'mongoid' require File.expand_path('../../lib/mongoid-genesis', __FILE__) Mongoid.configure do |config| config.master = Mongo::Connection.new.db('mongoid_genesis_test') config.allow_dynamic_fields = false end Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec config.after :each do Mongoid.master.collections.reject { |c| c.name =~ /^system\./ }.each(&:drop) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-genesis-0.0.4 | spec/spec_helper.rb |
mongoid-genesis-0.0.3 | spec/spec_helper.rb |
mongoid-genesis-0.0.2 | spec/spec_helper.rb |