class Rspec::Generators::InstallGenerator

def generate_rspec_init(tmpdir)

def generate_rspec_init(tmpdir)
  initializer = ::RSpec::Core::ProjectInitializer.new(
    destination: tmpdir,
    report_stream: StringIO.new
  )
  initializer.run
  spec_helper_path = File.join(tmpdir, 'spec', 'spec_helper.rb')
  replace_generator_command(spec_helper_path)
  remove_warnings_configuration(spec_helper_path)
  unless default_path == "spec"
    dot_rspec_path = File.join(tmpdir, '.rspec')
    append_default_path(dot_rspec_path)
  end
end