Class: Mongoid::Matchers::Validations::ValidateAssociatedMatcher

Inherits:
HaveValidationMatcher show all
Defined in:
lib/matchers/validations/associated.rb

Instance Method Summary collapse

Methods inherited from HaveValidationMatcher

#check_on, #failure_message_for_should, #failure_message_for_should_not, #matches?, #on

Constructor Details

#initialize(name) ⇒ ValidateAssociatedMatcher

Returns a new instance of ValidateAssociatedMatcher.



5
6
7
# File 'lib/matchers/validations/associated.rb', line 5

def initialize(name)
  super(name, :associated)
end

Instance Method Details

#descriptionObject



9
10
11
# File 'lib/matchers/validations/associated.rb', line 9

def description
  "validate associated #{@field.inspect}"
end