class RSpec::Mocks::ErrorGenerator

def raise_have_received_disallowed(type, reason)

Other tags:
    Private: -
def raise_have_received_disallowed(type, reason)
  __raise "Using #{type}(...) with the `have_received` " \
          "matcher is not supported#{reason}."
end