Class: ValidationMatchers::ActiveModel::FailEachValidationMatcher
- Inherits:
-
Matcher
- Object
- Matcher
- ValidationMatchers::ActiveModel::FailEachValidationMatcher
- Defined in:
- lib/validation_matchers/active_model/validate_each_matchers.rb
Instance Method Summary collapse
Methods inherited from Matcher
#errors_found?, #expected_errors_to_occur_failure_message, #initialize, #run_validate_each!, #unexpected_errors_ocurred_message
Constructor Details
This class inherits a constructor from ValidationMatchers::ActiveModel::Matcher
Instance Method Details
#matches?(validator) ⇒ Boolean
48 49 50 51 |
# File 'lib/validation_matchers/active_model/validate_each_matchers.rb', line 48 def matches?(validator) run_validate_each! validator errors_found? end |