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: project_owner_creates_license_file_spec.rb
    path of file: ./repos/gitlabhq/spec/features/projects/files
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'spec_helper'

RSpec.describe 'Proj
    
  def select_template(template)
    within_testid('template-selector') do
      click_button 'Apply a template'
      find('.gl-new-dropdown-contents li', text: template).click
      wait_for_requests
    end
  end