From b45eac2216a4601d6169f983b4c05ba259b31f56 Mon Sep 17 00:00:00 2001 From: Jon Yurek Date: Fri, 14 Feb 2014 10:19:26 -0500 Subject: [PATCH] Less confusing spoofing error, hopefully --- lib/paperclip/locales/en.yml | 2 +- test/validators/media_type_spoof_detection_validator_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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