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: redundant_line_break_spec.rb
    path of file: ./repos/rubocop/spec/rubocop/cop/layout
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

RSpec.describe RuboCo
    
            def resolve_inheritance_from_gems(hash)
              gems = hash.delete('inherit_gem')
              (gems || {}).each_pair do |gem_name, config_path|
                if gem_name == 'rubocop'
                  raise ArgumentError,
                  ^^^^^^^^^^^^^^^^^^^^ Redundant line break detected.
                        "can't inherit configuration from the rubocop gem"
                end

                hash['inherit_from'] = Array(hash['inherit_from'])
                Array(config_path).reverse_each do |path|
                  # Put gem configuration first so local configuration overrides it.
                  hash['inherit_from'].unshift gem_config_path(gem_name, path)
                end
              end