Skip to content

Commit c354aa5

Browse files
authored
Merge pull request #1 from NavigatingCancer/fix-deprecation-warning
Fix deprecation warning
2 parents 6da5282 + af54056 commit c354aa5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/attribute_normalizer/rspec_matcher.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ def failure_message
2121
"#{@attribute} did not normalize as expected! \"#{@subject.send(@attribute)}\" != #{@to.nil? ? 'nil' : "\"#{@to}\""}"
2222
end
2323

24-
def negative_failure_message
24+
def failure_message_when_negated
2525
"expected #{@attribute} to not be normalized from #{@from.nil? ? 'nil' : "\"#{@from}\""} to #{@to.nil? ? 'nil' : "\"#{@to}\""}"
2626
end
27+
alias negative_failure_message failure_message_when_negated
2728

2829
def from(value)
2930
@from = value

0 commit comments

Comments
 (0)