Class: ActiveStorageValidations::Matchers::SizeValidatorMatcher
- Inherits:
-
BaseSizeValidatorMatcher
- Object
- BaseSizeValidatorMatcher
- ActiveStorageValidations::Matchers::SizeValidatorMatcher
- Defined in:
- lib/active_storage_validations/matchers/size_validator_matcher.rb
Instance Method Summary collapse
Methods inherited from BaseSizeValidatorMatcher
#between, #greater_than, #greater_than_or_equal_to, #initialize, #less_than, #less_than_or_equal_to, #matches?
Methods included from Rspecable
#failure_message_when_negated, #initialize_rspecable
Methods included from Messageable
#initialize_messageable, #with_message
Methods included from Contextable
Methods included from AllowBlankable
#allow_blank, #initialize_allow_blankable
Constructor Details
This class inherits a constructor from ActiveStorageValidations::Matchers::BaseSizeValidatorMatcher
Instance Method Details
#description ⇒ Object
12 13 14 |
# File 'lib/active_storage_validations/matchers/size_validator_matcher.rb', line 12 def description "validate file size of :#{@attribute_name}" end |
#failure_message ⇒ Object
16 17 18 19 20 |
# File 'lib/active_storage_validations/matchers/size_validator_matcher.rb', line 16 def = ["is expected to validate file size of :#{@attribute_name}"] () .join("\n") end |