Skip to content
This repository was archived by the owner on Oct 19, 2018. It is now read-only.

Commit aa48f86

Browse files
committed
Fix deprecation warning of RSpec matcher
1 parent d3a0e6a commit aa48f86

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/react/test/matchers/render_html_matcher.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ def failure_message
2222
failure_string
2323
end
2424

25-
def negative_failure_message
25+
def failure_message_when_negated
2626
failure_string(:negative)
2727
end
2828

29+
alias negative_failure_message failure_message_when_negated
30+
2931
private
3032

3133
def render_to_html

0 commit comments

Comments
 (0)