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: spec_helper.rb
    path of file: ./repos/dependabot-core/bundler/spec
    
    the code of the file until where you have to start completion: # typed: true
# frozen_string_literal: true

def common_dir
  @common_dir ||= Gem::Specification.find_by_name("dependabot-common").gem_dir
end

def require_common_spec(path)
  require "#{common_dir}/spec/dependabot/#{path}"
end

require
    
def bundler_project_dependency_file(project, filename:)
  project_dependency_files = bundler_project_dependency_files(project)
  dependency_file = project_dependency_files.find { |file| file.name == filename }

  unless dependency_file
    raise "Dependency File '#{filename} does not exist for project '#{project}'. " \
          "This is the list of files found:\n  * #{project_dependency_files.map(&:name).join("\n  * ")}"
  end

  dependency_file
end