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: expect_request_with_status.rb
    path of file: ./repos/gitlabhq/spec/support/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ExpectRequestWithStatus
  def
    
  def expect_request_with_status(status)
    expect do
      yield

      expect(response).to have_gitlab_http_status(status)
    end
  end