Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
attachment_content_type_validator_test.rb | ||
attachment_presence_validator_test.rb | ||
attachment_size_validator_test.rb |
Current validation check in AttachmentContentTypeValidator is simply wrong, it will add an error if any of the allowed_types fails comparison with value, so it will pass only if value is either empty or equals to each and every one of allowed_types. Add test to check that validation passes if even one of content types match.
Name |
Last commit
|
Last Update |
---|---|---|
.. | ||
attachment_content_type_validator_test.rb | Loading commit data... | |
attachment_presence_validator_test.rb | Loading commit data... | |
attachment_size_validator_test.rb | Loading commit data... |