class RSpec::Mocks::ErrorGenerator

def raise_expectation_on_mocked_method(method)

Other tags:
    Private: -
def raise_expectation_on_mocked_method(method)
  __raise "#{intro} expected to have received #{method}, but that " +
          "method has been mocked instead of stubbed."
end