Permalink
Browse files

Less confusing spoofing error, hopefully

  • Loading branch information...
1 parent 00787da commit b45eac2216a4601d6169f983b4c05ba259b31f56 @jyurek jyurek committed Feb 14, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/paperclip/locales/en.yml
  2. +1 −1 test/validators/media_type_spoof_detection_validator_test.rb
@@ -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 @@ def build_validator(options = {})
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

0 comments on commit b45eac2

Please sign in to comment.