Fixed RSpec deprecations related to HaveText matcher

This commit is contained in:
Jeff Casimir 2015-03-26 23:39:47 -06:00
parent d0149b1c8f
commit 57a514133b
1 changed files with 2 additions and 2 deletions

View File

@ -21,11 +21,11 @@ module HaveTextMatcher
@subject.has_css?(@css || "*", text: @text)
end
def failure_message_for_should
def failure_message
"expected to find #{@text.inspect} #{within}"
end
def failure_message_for_should_not
def failure_message_when_negated
"expected not to find #{@text.inspect} #{within}"
end