class RSpec::Expectations::LegacyMatcherAdapter
@private
order to present the current protocol.
Wraps a matcher written against one of the legacy protocols in
def self.wrap(matcher)
def self.wrap(matcher) new(matcher) if interface_matches?(matcher) end
def initialize(matcher)
def initialize(matcher) super ::RSpec.warn_deprecation(<<-EOS.gsub(/^\s+\|/, ''), :type => "legacy_matcher") |#{matcher.class.name || matcher.inspect} implements a legacy RSpec matcher |protocol. For the current protocol you should expose the failure messages |via the `failure_message` and `failure_message_when_negated` methods. |(Used from #{CallerFilter.first_non_rspec_line}) EOS end