module RSpec::Mocks::TargetDelegationClassMethods
def delegate_to(matcher_method)
def delegate_to(matcher_method) define_method(:to) do |matcher, &block| unless matcher_allowed?(matcher) raise_unsupported_matcher(:to, matcher) end define_matcher(matcher, matcher_method, &block) end end