Commit f44ede70 by Lawrence Pit Committed by Jon Yurek

fix should_validate_attachment_content_type macro

(cherry picked from commit 4db98fb37e32867541f28b7832ce8d28788fd62c)
parent 5318f7dc
......@@ -38,7 +38,7 @@ module Paperclip
klass = self.name.gsub(/Test$/, '').constantize
valid = [options[:valid]].flatten
invalid = [options[:invalid]].flatten
matcher = validate_attachment_presence(name).allows(valid).rejects(invalid)
matcher = validate_attachment_content_type(name).allowing(valid).rejecting(invalid)
should matcher.description do
assert_accepts(matcher, klass)
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment