class Rspec::Generators::IntegrationGenerator

@private

Public Instance Methods

generate_request_spec() click to toggle source
# File lib/generators/rspec/integration/integration_generator.rb, line 15
      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