1
0
Fork 0
mirror of https://github.com/drapergem/draper synced 2023-03-27 23:21:17 -04:00

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

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