module Mongoid::Matchers::Associations
Constants
- BELONGS_TO
- EMBEDDED_IN
- EMBEDS_MANY
- EMBEDS_ONE
- HAS_AND_BELONGS_TO_MANY
- HAS_MANY
- HAS_ONE
Public Instance Methods
be_embedded_in(association_name)
click to toggle source
# File lib/matchers/associations.rb, line 343 def be_embedded_in(association_name) HaveAssociationMatcher.new(association_name, EMBEDDED_IN) end
embed_many(association_name)
click to toggle source
# File lib/matchers/associations.rb, line 339 def embed_many(association_name) HaveAssociationMatcher.new(association_name, EMBEDS_MANY) end
embed_one(association_name)
click to toggle source
# File lib/matchers/associations.rb, line 335 def embed_one(association_name) HaveAssociationMatcher.new(association_name, EMBEDS_ONE) end
have_and_belong_to_many(association_name)
click to toggle source
# File lib/matchers/associations.rb, line 357 def have_and_belong_to_many(association_name) HaveAssociationMatcher.new(association_name, HAS_AND_BELONGS_TO_MANY) end