class Rspec::Generators::IntegrationGenerator

def generate_request_spec

def generate_request_spec
  return unless options[:request_specs]
  RSpec.warn_deprecation <<-WARNING.gsub(/\s*\|/, ' ')
    |The integration generator is deprecated
    |and will be deleted in RSpec-Rails 7.
    |Please use the request generator instead.
  WARNING
  template 'request_spec.rb',
           target_path('requests', "#{name.underscore.pluralize}_spec.rb")
end