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 |
---|---|---|
.. | ||
fixtures | Loading commit data... | |
matchers | Loading commit data... | |
storage | Loading commit data... | |
support | Loading commit data... | |
validators | Loading commit data... | |
attachment_options_test.rb | Loading commit data... | |
attachment_test.rb | Loading commit data... | |
database.yml | Loading commit data... | |
geometry_test.rb | Loading commit data... | |
helper.rb | Loading commit data... | |
integration_test.rb | Loading commit data... | |
interpolations_test.rb | Loading commit data... | |
iostream_test.rb | Loading commit data... | |
paperclip_missing_attachment_styles_test.rb | Loading commit data... | |
paperclip_test.rb | Loading commit data... | |
processor_test.rb | Loading commit data... | |
schema_test.rb | Loading commit data... | |
style_test.rb | Loading commit data... | |
thumbnail_test.rb | Loading commit data... | |
upfile_test.rb | Loading commit data... | |
url_generator_test.rb | Loading commit data... | |
validators_test.rb | Loading commit data... |