diff --git a/lib/paperclip/locales/en.yml b/lib/paperclip/locales/en.yml index c8e31ee72..43fd583a5 100644 --- a/lib/paperclip/locales/en.yml +++ b/lib/paperclip/locales/en.yml @@ -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: diff --git a/test/validators/media_type_spoof_detection_validator_test.rb b/test/validators/media_type_spoof_detection_validator_test.rb index efd4f91f4..6f6892c64 100644 --- a/test/validators/media_type_spoof_detection_validator_test.rb +++ b/test/validators/media_type_spoof_detection_validator_test.rb @@ -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