module Mongoid::Matchers

Public Instance Methods

be_stored_in(collection_name) click to toggle source
# File lib/matchers/document/be_stored_in.rb, line 3
def be_stored_in collection_name
  BeStoredInMatcher.new collection_name
end
have_index_for(*attrs) click to toggle source

TODO: Add documentation.

# File lib/matchers/document/have_index.rb, line 4
def have_index_for *attrs
  HaveIndexMatcher.new(*attrs)
end