Module: Mongoid
- Defined in:
- lib/matchers/allow_mass_assignment.rb,
lib/mongoid/rspec.rb,
lib/matchers/have_field.rb,
lib/matchers/validations.rb,
lib/matchers/associations.rb,
lib/matchers/be_stored_in.rb,
lib/mongoid/rspec/version.rb,
lib/matchers/have_timestamps.rb,
lib/matchers/be_dynamic_document.rb,
lib/matchers/be_mongoid_document.rb,
lib/matchers/validations/format_of.rb,
lib/matchers/validations/length_of.rb,
lib/matchers/indexes/have_index_for.rb,
lib/matchers/validations/absence_of.rb,
lib/matchers/validations/associated.rb,
lib/matchers/validations/presence_of.rb,
lib/matchers/accept_nested_attributes.rb,
lib/matchers/validations/exclusion_of.rb,
lib/matchers/validations/inclusion_of.rb,
lib/matchers/indexes/v3/have_index_for.rb,
lib/matchers/indexes/v4/have_index_for.rb,
lib/matchers/validations/acceptance_of.rb,
lib/matchers/validations/uniqueness_of.rb,
lib/matchers/validations/confirmation_of.rb,
lib/matchers/validations/numericality_of.rb,
lib/matchers/validations/custom_validation_of.rb
Overview
this code is totally extracted from shoulda-matchers gem.