
The simplest way to test validates_attachment_file_name and validates_attachment_content_type configurations of the Rails model that has a
paperclip attachment is to use the allow_value method in the shoulda gem.
The following example uses rspec to demonstrate.








