Module: Mongoid::Matchers::Document

Included in:
Mongoid::Matchers
Defined in:
lib/matchers/document/document.rb,
lib/matchers/document/have_field.rb

Defined Under Namespace

Classes: DocumentMatcher, HaveFieldMatcher

Constant Summary collapse

DOCUMENT =
Mongoid::Document
PARANOIA =
Mongoid::Paranoia
VERSIONING =
Mongoid::Versioning
TIMESTAMPS =
Mongoid::Timestamps

Instance Method Summary collapse

Instance Method Details

#be_documentObject

TODO: add documentation.


10
11
12
# File 'lib/matchers/document/document.rb', line 10

def be_document
  DocumentMatcher.new DOCUMENT
end

#be_paranoidObject

TODO: add documentation.


16
17
18
# File 'lib/matchers/document/document.rb', line 16

def be_paranoid
  DocumentMatcher.new PARANOIA
end

#be_timestampedObject

TODO: add documentation.


27
28
29
# File 'lib/matchers/document/document.rb', line 27

def be_timestamped
  DocumentMatcher.new TIMESTAMPS
end

#be_versionedObject

TODO: add documentation.


21
22
23
# File 'lib/matchers/document/document.rb', line 21

def be_versioned
  DocumentMatcher.new VERSIONING
end

#have_field(*fields) ⇒ Object Also known as: have_fields

TODO: Add documentation.


5
6
7
# File 'lib/matchers/document/have_field.rb', line 5

def have_field *fields
  HaveFieldMatcher.new(*fields)
end