Sha256: f0a1b36bd8ba5f4b6c88e4368262f0bbee5a356b4699b3ee72395990c51a247c

Contents?: true

Size: 616 Bytes

Versions: 11

Compression:

Stored size: 616 Bytes

Contents

module Rspec
  module Generators
    class InstallGenerator < Rails::Generators::Base

      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 create_config_files
        inside "config" do
          directory "initializers"
        end
      end

      def copy_spec_files
        directory 'spec'
      end

      def app_name
        Rails.application.class.name
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
rspec-rails-2.0.0.beta.5 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.4 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.3 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.2 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.1 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a10 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a9 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a8 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a7 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a6 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.a5 lib/generators/rspec/install/install_generator.rb