class Rspec::Generators::ScaffoldGenerator

def generate_request_spec

def generate_request_spec
  return unless options[:request_specs]
  if options[:api]
    template 'api_request_spec.rb', template_file(folder: 'requests')
  else
    template 'request_spec.rb', template_file(folder: 'requests')
  end
end