class RSpec::Mocks::TargetBase
def self.delegate_to(matcher_method)
def self.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