method
warn_if_nil_class
warn_if_nil_class(sym)
private
Hide source
# File lib/spec/mocks/proxy.rb, line 120 def warn_if_nil_class(sym) if proxy_for_nil_class? && @@warn_about_expectations_on_nil Kernel.warn("An expectation of :#{sym} was set on nil. Called from #{caller[2]}. Use allow_message_expectations_on_nil to disable warnings.") end end