spec/support/matchers/have_text.rb in draper-2.1.0 vs spec/support/matchers/have_text.rb in draper-3.0.0.pre1

- old
+ new

@@ -19,14 +19,14 @@ @subject = Capybara.string(subject) @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 private