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: app_test.rb
    path of file: ./repos/gitlab-live/test
    
    the code of the file until where you have to start completion: ENV['RACK_ENV'] = 'test'

require 'minitest/autorun'
require 'rack/test'
require 'bundler'

Bundler.require :default, :test
require_relative '../app'

class GitlabLiveTest < MiniTest::Test
  include Rack::Test::M
    
  def test_query
    post '/query', { host: 'https://example.com/api/v4', token: '1234', sudo: '', query: 'help' }
    assert last_response.ok?
    assert last_response.content_type.include?('application/json')

    output   = capture_output { Gitlab::CLI.run('help') }
    expected = { query: 'help', output: output }.to_json
    assert_equal expected, last_response.body
  end