Set allow_message_expectations_on_nil to disable warnings.