Class: MiniTest::Matchers::ActiveModel::ValidateAssociated
- Inherits:
-
ValidationMatcher
- Object
- ValidationMatcher
- MiniTest::Matchers::ActiveModel::ValidateAssociated
- Defined in:
- lib/matchers/validate_associated_matcher.rb
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(association_name) ⇒ ValidateAssociated
constructor
A new instance of ValidateAssociated.
Methods inherited from ValidationMatcher
#failure_message, #matches?, #negative_failure_message, #on, #with_message
Methods included from Helpers
Constructor Details
#initialize(association_name) ⇒ ValidateAssociated
Returns a new instance of 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
#description ⇒ Object
20 21 22 |
# File 'lib/matchers/validate_associated_matcher.rb', line 20 def description "validate associated #{@attr.inspect}" end |