Sha256: 90111ec8e01fe3d8d69962dbc8e11cf293c73f5eafa845d1ef343734f5ef2911
Contents?: true
Size: 507 Bytes
Versions: 2
Compression:
Stored size: 507 Bytes
Contents
require 'bundler' Bundler.require require 'rspec' require 'rspec/retry' Mongoid.configure do |config| config.connect_to 'mongoid_orderable_test' end Mongoid.logger.level = Logger::INFO Mongo::Logger.logger.level = Logger::INFO Mongoid::Config.belongs_to_required_by_default = false RSpec.configure do |config| config.before(:each) do Mongoid.purge! Mongoid.models.each do |model| model.create_indexes if model.name =~ /Mongoid::Orderable::Models/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid_orderable-6.0.1 | spec/spec_helper.rb |
mongoid_orderable-6.0.0 | spec/spec_helper.rb |