module Mongoid::Matchers::Document
Constants
- DOCUMENT
- PARANOIA
- TIMESTAMPS
- VERSIONING
Public Instance Methods
be_document()
click to toggle source
TODO: add documentation.
# File lib/matchers/document/document.rb, line 10 def be_document DocumentMatcher.new DOCUMENT end
be_paranoid()
click to toggle source
TODO: add documentation.
# File lib/matchers/document/document.rb, line 16 def be_paranoid DocumentMatcher.new PARANOIA end
be_timestamped()
click to toggle source
TODO: add documentation.
# File lib/matchers/document/document.rb, line 27 def be_timestamped DocumentMatcher.new TIMESTAMPS end
be_versioned()
click to toggle source
TODO: add documentation.
# File lib/matchers/document/document.rb, line 21 def be_versioned DocumentMatcher.new VERSIONING end
have_field(*fields)
click to toggle source
TODO: Add documentation.
# File lib/matchers/document/have_field.rb, line 5 def have_field *fields HaveFieldMatcher.new(*fields) end
Also aliased as: have_fields