class RSpec::Mocks::ProxyForNil

def warn(method_name)

def warn(method_name)
  warning_msg = @error_generator.expectation_on_nil_message(method_name)
  RSpec.warning(warning_msg)
end