class Rspec::Generators::GeneratorGenerator

@private

def filename

def filename
  "#{file_name}_generator_spec.rb"
end

def generate_generator_spec

def generate_generator_spec
  return unless options[:generator_specs]
  template template_name, target_path('generator', class_path, filename)
end

def template_name

def template_name
  'generator_spec.rb'
end