lib/generators/rspec/install/install_generator.rb
module Rspec module Generators class InstallGenerator < Rails::Generators::Base add_shebang_option! desc <<DESC Description: Copy rspec files to your application. DESC def self.source_root @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) end def copy_lib_files directory 'lib' end # def copy_script_files # directory "script" # chmod "script/rspec", 0755, :verbose => false # end def copy_spec_files directory 'spec' end end end end