Class: Mongoid::Matchers::Validations::ValidateAssociatedMatcher
- Inherits:
-
HaveValidationMatcher
- Object
- HaveValidationMatcher
- Mongoid::Matchers::Validations::ValidateAssociatedMatcher
- Defined in:
- lib/matchers/validations/associated.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(name) ⇒ ValidateAssociatedMatcher
constructor
A new instance of ValidateAssociatedMatcher.
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
#description ⇒ Object
9 10 11 |
# File 'lib/matchers/validations/associated.rb', line 9 def description "validate associated #{@field.inspect}" end |