method

warn_if_nil_class

1.1.12 - Show latest stable - Class: Spec::Mocks::Proxy
warn_if_nil_class(sym)
private

No documentation available.

# 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