We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6da5282 + af54056 commit c354aa5Copy full SHA for c354aa5
lib/attribute_normalizer/rspec_matcher.rb
@@ -21,9 +21,10 @@ def failure_message
21
"#{@attribute} did not normalize as expected! \"#{@subject.send(@attribute)}\" != #{@to.nil? ? 'nil' : "\"#{@to}\""}"
22
end
23
24
- def negative_failure_message
+ def failure_message_when_negated
25
"expected #{@attribute} to not be normalized from #{@from.nil? ? 'nil' : "\"#{@from}\""} to #{@to.nil? ? 'nil' : "\"#{@to}\""}"
26
27
+ alias negative_failure_message failure_message_when_negated
28
29
def from(value)
30
@from = value
0 commit comments