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:
parent
d0149b1c8f
commit
57a514133b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue