From 57a514133bc241e74cc4e8877d014cad4e1f12c6 Mon Sep 17 00:00:00 2001 From: Jeff Casimir Date: Thu, 26 Mar 2015 23:39:47 -0600 Subject: [PATCH] Fixed RSpec deprecations related to HaveText matcher --- spec/support/matchers/have_text.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/support/matchers/have_text.rb b/spec/support/matchers/have_text.rb index 0c70299..b5010af 100644 --- a/spec/support/matchers/have_text.rb +++ b/spec/support/matchers/have_text.rb @@ -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