method
allow_message_expectations_on_nil
allow_message_expectations_on_nil()
public
Disables warning messages about expectations being set on nil.
By default warning messages are issued when expectations are set on nil. This is to prevent false-positives and to catch potential bugs early on.