You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: setup_rake_spec.rb
    path of file: ./repos/gitlabhq/spec/tasks/gitlab
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'gitlab:setup namespace rake tasks', :silence_stdout do
  before do
    Rake.application.rake_require 'active_record/railties/databases'
    
    def expect_gitaly_connections_to_be_checked
      expect(Gitlab::GitalyClient::ServerService).to receive(:new).with('name1').and_return(server_service1)
      expect(server_service1).to receive(:info)

      expect(Gitlab::GitalyClient::ServerService).to receive(:new).with('name2').and_return(server_service2)
      expect(server_service2).to receive(:info)
    end