module RSpec::Mocks::TargetDelegationInstanceMethods

def raise_unsupported_matcher(method_name, matcher)

def raise_unsupported_matcher(method_name, matcher)
  raise UnsupportedMatcherError,
        "only the `receive`, `have_received` and `receive_messages` matchers are supported " \
        "with `#{expression}(...).#{method_name}`, but you have provided: #{matcher}"
end