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_local_specification.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"
require "rubygems/availab
    
  def test_install
    specs = spec_fetcher do |fetcher|
      fetcher.gem "a", 2
    end

    source = Gem::Source::SpecificFile.new "gems/a-2.gem"

    spec = Gem::Resolver::LocalSpecification.new @set, specs["a-2"], source

    called = false

    spec.install({}) do |installer|
      called = installer
    end

    assert_path_exist File.join @gemhome, "specifications", "a-2.gemspec"

    assert_kind_of Gem::Installer, called
  end