Sha256: 513b1a90c23594290a1ee97547d351cbcc6a7e82c3b0973ebc323ab999070275

Contents?: true

Size: 1.61 KB

Versions: 2

Compression:

Stored size: 1.61 KB

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'mongoid'
require 'mongoid-compatibility'
require 'rspec/core'
require 'rspec/expectations'
require 'rspec/mocks'
require 'active_support/core_ext/hash/keys'
require 'active_support/core_ext/hash/transform_values' if Mongoid::Compatibility::Version.mongoid4_or_newer? && ActiveSupport.version < Gem::Version.new('6')
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/string/inflections'

require 'matchers/associations'
require 'matchers/allow_mass_assignment'
require 'matchers/accept_nested_attributes'
require 'matchers/validations'
require 'matchers/validations/associated'
require 'matchers/validations/confirmation_of'
require 'matchers/validations/exclusion_of'
require 'matchers/validations/format_of'
require 'matchers/validations/inclusion_of'
require 'matchers/validations/length_of'
require 'matchers/validations/numericality_of'
require 'matchers/validations/presence_of'
require 'matchers/validations/uniqueness_of'
require 'matchers/validations/acceptance_of'
require 'matchers/validations/custom_validation_of'
require 'matchers/validations/absence_of'
require 'matchers/be_mongoid_document'
require 'matchers/be_dynamic_document'
require 'matchers/be_stored_in'
require 'matchers/have_field'
require 'matchers/indexes/have_index_for'
if Mongoid::Compatibility::Version.mongoid3?
  require 'matchers/indexes/v3/have_index_for'
else
  require 'matchers/indexes/v4/have_index_for'
end
require 'matchers/have_timestamps'

module Mongoid
  module Matchers
    include Mongoid::Matchers::Associations
    include Mongoid::Matchers::Validations
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid-rspec-4.2.0 lib/mongoid/rspec.rb
mongoid-rspec-4.1.0 lib/mongoid/rspec.rb