module RSpec::Mocks::ExampleMethods

def allow_message_expectations_on_nil

prevent false-positives and to catch potential bugs early on.
By default warning messages are issued when expectations are set on nil. This is to

Disables warning messages about expectations being set on nil.
def allow_message_expectations_on_nil
  Proxy.allow_message_expectations_on_nil
end