Sha256: 26f2c6bc8e752b0bb375381389b2c71ca6720bb1126b9116ecae93792393ed73
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
require 'bundler' Bundler.require DATABASE_ID = Process.pid Mongoid.configure do |config| database = Mongo::Connection.new.db("mongoid_#{DATABASE_ID}") database.add_user("mongoid", "test") config.master = database config.logger = nil end RSpec.configure do |config| config.mock_with :rspec config.before :suite do #DatabaseCleaner[:mongoid].strategy = :truncation end config.after :each do #DatabaseCleaner[:mongoid].clean end config.after(:suite) do Mongoid.master.connection.drop_database("mongoid_#{DATABASE_ID}") end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mongoid_orderable-1.0.0 | spec/spec_helper.rb |
mongoid_orderable-0.9.1 | spec/spec_helper.rb |
mongoid_orderable-0.9.0 | spec/spec_helper.rb |
mongoid_orderable-0.0.1 | spec/spec_helper.rb |