From 8524e8fe831614b1b576cc52aa97d37d391da777 Mon Sep 17 00:00:00 2001 From: Tyler Porter Date: Tue, 4 Mar 2014 10:58:05 -0500 Subject: [PATCH] Add alias for legacy RSpec matcher deprecation --- lib/paperclip/matchers/validate_attachment_size_matcher.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/paperclip/matchers/validate_attachment_size_matcher.rb b/lib/paperclip/matchers/validate_attachment_size_matcher.rb index 92988b9a6..0030307c5 100644 --- a/lib/paperclip/matchers/validate_attachment_size_matcher.rb +++ b/lib/paperclip/matchers/validate_attachment_size_matcher.rb @@ -45,9 +45,10 @@ def failure_message "Attachment #{@attachment_name} must be between #{@low} and #{@high} bytes" end - def negative_failure_message + def failure_message_when_negated "Attachment #{@attachment_name} cannot be between #{@low} and #{@high} bytes" end + alias negative_failure_message failure_message_when_negated def description "validate the size of attachment #{@attachment_name}"