Commit b45eac22 by Jon Yurek

Less confusing spoofing error, hopefully

parent 00787da6
......@@ -2,7 +2,7 @@ en:
errors:
messages:
in_between: "must be in between %{min} and %{max}"
spoofed_media_type: "media type is spoofed"
spoofed_media_type: "has an extension that does not match its contents"
number:
human:
......
......@@ -27,6 +27,6 @@ class MediaTypeSpoofDetectionValidatorTest < Test::Unit::TestCase
Paperclip::MediaTypeSpoofDetector.stubs(:using).returns(detector)
@validator.validate(@dummy)
assert_equal "media type is spoofed", @dummy.errors[:avatar].first
assert_equal "has an extension that does not match its contents", @dummy.errors[:avatar].first
end
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