module RSpec::Mocks::ExampleMethods

def allow_message_expectations_on_nil

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

Disables warning messages about expectations being set on nil.
def allow_message_expectations_on_nil
  RSpec::Mocks.space.proxy_for(nil).warn_about_expectations = false
end