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_helper.rb
    path of file: ./repos/tiddlyhost/rails/test
    
    the code of the file until where you have to start completion: if ENV['COVERAGE'] == '1'
  require 'simplecov'
  SimpleCov.start
end

ENV['RAILS_ENV'] ||= 'test'
require_relative "../config/environment"
require "
    
  def new_site_helper(name:, user:, empty: :tw5, tiddlers: {}, empty_content: nil)
    empty = Empty.find_by_name(empty)
    th_file = empty.th_file

    # Instead of the named empty, use the content provided
    th_file = ThFile.new(empty_content) if empty_content

    # Inject tiddlers
    tw_html = th_file.write_tiddlers(tiddlers).to_html

    Site.create!({ name: name, empty_id: empty.id, user_id: user.id }.
      merge(WithSavedContent.attachment_params(tw_html)))
  end