class RSpec::Matchers::BuiltIn::BePredicate
def check_respond_to(method)
def check_respond_to(method) RSpec.deprecate( "Matching with #{@prefix}#{@expected} on an object that doesn't respond to `#{method}`", :replacement => "`respond_to_missing?` or `respond_to?` on your object" ) unless actual.respond_to?(method) end