class Mongoid::Matchers::Validations::ValidateAssociatedMatcher

Public Class Methods

new(name) click to toggle source
# File lib/matchers/validations/associated.rb, line 5
def initialize(name)
  super(name, :associated)
end

Public Instance Methods

description() click to toggle source
# File lib/matchers/validations/associated.rb, line 9
def description
  "validate associated #{@field.inspect}"
end