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

require "test_helper"
require "generators/boring/overcommit/pre_commit/rubocop/install/install_generator"

class OvercommitPreCo
    
  def test_should_configure_rubocop
    Dir.chdir(app_path) do
      Bundler.with_unbundled_env do
        `bundle add rubocop --group development`
      end

      quietly { run_generator }

      assert_file ".overcommit.yml" do |content|
        configuration_content = <<~YAML
          PreCommit:
            RuboCop:
              enabled: true
              on_warn: fail # Treat all warnings as failures
              problem_on_unmodified_line: ignore # run RuboCop only on modified code'
        YAML

        assert_match(configuration_content, content)
      end
    end
  end