123456789_123456789_123456789_123456789_123456789_

Class: Rspec::Generators::GeneratorGenerator Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base, Rails::Generators::NamedBase
Instance Chain:
self, Base, ::RSpec::Rails::FeatureCheck, Rails::Generators::NamedBase
Inherits: Rspec::Generators::Base
Defined in: rspec-rails/lib/generators/rspec/generator/generator_generator.rb

Class Method Summary

Base - Inherited

.configuration

Load configuration from ::RSpec to ensure –default-path is set.

.source_root

Instance Method Summary

Instance Method Details

#filename

[ GitHub ]

  
# File 'rspec-rails/lib/generators/rspec/generator/generator_generator.rb', line 19

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

#generate_generator_spec

[ GitHub ]

  
# File 'rspec-rails/lib/generators/rspec/generator/generator_generator.rb', line 9

def generate_generator_spec
  return unless options[:generator_specs]

  template template_name, target_path('generator', class_path, filename)
end

#template_name

[ GitHub ]

  
# File 'rspec-rails/lib/generators/rspec/generator/generator_generator.rb', line 15

def template_name
  'generator_spec.rb'
end