Commit 8524e8fe by Tyler Porter

Add alias for legacy RSpec matcher deprecation

parent b57208ab
......@@ -45,9 +45,10 @@ module Paperclip
"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}"
......
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