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_api_set.rb
    path of file: ./repos/rubygems/test/rubygems
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require_relative "helper"

class TestGemResolverAPISet < Gem::TestCase
 
    
  def test_find_all_prereleases
    spec_fetcher

    data = [
      { name: "a",
        number: "1",
        platform: "ruby",
        dependencies: [] },
      { name: "a",
        number: "2.a",
        platform: "ruby",
        dependencies: [] },
    ]

    @fetcher.data["#{@dep_uri}a"] = "---\n1\n2.a"

    set = Gem::Resolver::APISet.new @dep_uri
    set.prerelease = true

    a_dep = Gem::Resolver::DependencyRequest.new dep("a"), nil

    expected = [
      Gem::Resolver::APISpecification.new(set, data.first),
      Gem::Resolver::APISpecification.new(set, data.last),
    ]

    assert_equal expected, set.find_all(a_dep)
  end