Class: MiniTest::Matchers::ActiveModel::ValidateAssociated

Inherits:
ValidationMatcher show all
Defined in:
lib/matchers/validate_associated_matcher.rb

Instance Method Summary collapse

Methods inherited from ValidationMatcher

#failure_message, #matches?, #negative_failure_message, #on, #with_message

Methods included from Helpers

#class_of, #to_sentence

Constructor Details

#initialize(association_name) ⇒ ValidateAssociated


16
17
18
# File 'lib/matchers/validate_associated_matcher.rb', line 16

def initialize association_name
  super association_name, :associated
end

Instance Method Details

#descriptionObject


20
21
22
# File 'lib/matchers/validate_associated_matcher.rb', line 20

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