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: install_spec.rb
    path of file: ./repos/karafka/spec/integrations/installation/with_rails71_pristine
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# Karafka install should run and after that, we should be able to run it without any problems

require 'tmp
    
def remove_ruby_def(file_path)
  lines = File.readlines(file_path)

  filtered_lines = lines.reject { |line| line.start_with?('ruby "') }

  File.open(file_path, 'w') do |file|
    file.puts(filtered_lines)
  end
end