Sha256: ed251324aea0f5f506323884a07da9883c94fcbec9f420d8b0c158888a432c46
Contents?: true
Size: 530 Bytes
Versions: 3
Compression:
Stored size: 530 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'mail' require 'action_mailer' require 'mongoid' require 'delayed_job_shallow_mongoid' Mongoid.configure do |config| name = "delayed_job_shallow_mongoid_test" config.master = Mongo::Connection.new.db(name) config.logger = Logger.new('/dev/null') end RSpec.configure do |config| config.before(:each) do Mongoid.master.collections.select {|c| c.name !~ /system/ }.each(&:drop) end config.after(:all) do Mongoid.master.command({'dropDatabase' => 1}) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
delayed_job_shallow_mongoid-0.4.0 | spec/spec_helper.rb |
delayed_job_shallow_mongoid-0.3.0 | spec/spec_helper.rb |
delayed_job_shallow_mongoid-0.2.8 | spec/spec_helper.rb |