Sha256: 498a757d65f8a247829995bac6b761ad9630bd72c8eb7cd2bbf892f70bb3a044

Contents?: true

Size: 597 Bytes

Versions: 3

Compression:

Stored size: 597 Bytes

Contents

require "rubygems"
require "bundler/setup"

require 'rspec'
require 'rspec-aspic'

require 'mongoid'
require File.expand_path('../../lib/mongoid-sorted-relations', __FILE__)


Mongoid.configure do |config|
  config.master = Mongo::Connection.new.db('mongoid_sortable_relations_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.include RSpecAspic
  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-sorted-relations-0.0.3 spec/spec_helper.rb
mongoid-sorted-relations-0.0.2 spec/spec_helper.rb
mongoid-sorted-relations-0.0.1 spec/spec_helper.rb