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
-
#be_document ⇒ Object
TODO: add documentation.
-
#be_paranoid ⇒ Object
TODO: add documentation.
-
#be_timestamped ⇒ Object
TODO: add documentation.
-
#be_versioned ⇒ Object
TODO: add documentation.
-
#have_field(*fields) ⇒ Object
(also: #have_fields)
TODO: Add documentation.
Instance Method Details
#be_document ⇒ Object
TODO: add documentation.
10 11 12 |
# File 'lib/matchers/document/document.rb', line 10 def be_document DocumentMatcher.new DOCUMENT end |
#be_paranoid ⇒ Object
TODO: add documentation.
16 17 18 |
# File 'lib/matchers/document/document.rb', line 16 def be_paranoid DocumentMatcher.new PARANOIA end |
#be_timestamped ⇒ Object
TODO: add documentation.
27 28 29 |
# File 'lib/matchers/document/document.rb', line 27 def DocumentMatcher.new TIMESTAMPS end |
#be_versioned ⇒ Object
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 |