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: test_gem_resolver_vendor_set.rb
    path of file: ./repos/artichoke/artichoke-backend/vendor/ruby/test/rubygems
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require_relative 'helper'

class TestG
    
  def test_add_vendor_gem
    name, version, directory = vendor_gem

    added = @set.add_vendor_gem name, directory

    spec = @set.load_spec name, version, Gem::Platform::RUBY, nil

    assert_equal spec, added

    assert_equal "#{name}-#{version}", spec.full_name

    assert_equal File.expand_path(directory), spec.full_gem_path
  end