Sha256: 5782a633fef364d4fb3ed959a11bd355aeb7b74f21ad5c28d96e0bf636e611eb

Contents?: true

Size: 573 Bytes

Versions: 12

Compression:

Stored size: 573 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_dot_rspec
        template '.rspec'
      end

      def copy_spec_files
        directory 'spec'
      end

      def copy_autotest_files
        directory 'autotest'
      end

      def app_name
        Rails.application.class.name
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rspec-rails-2.3.0 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.2.1 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.2.0 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.1.0 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.1 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.rc lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.22 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.20 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.19 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.18 lib/generators/rspec/install/install_generator.rb
rspec-rails-2.0.0.beta.17 lib/generators/rspec/install/install_generator.rb