Sha256: 7bea3888fe0a6cf31bb62166fde9d4084aad4c401fb3ad0ed5633daae03076dd

Contents?: true

Size: 823 Bytes

Versions: 42

Compression:

Stored size: 823 Bytes

Contents

module Jinda
  module Generators
    class RspecGenerator < Rails::Generators::Base
      def self.source_root
        File.dirname(__FILE__) + "/templates"
      end

      desc "config rspec"
      def gen_rspec
        # generate "rspec:install"
        # empty_directory "spec/support" 
        # empty_directory "spec/model"
        # empty_directory "spec/routing"
        # copy_file ".rspec", ".rspec.bak"
        run "guard init"
        copy_file "dotrspec",".rspec"
      end

      desc "Finish generate rspec:install"
      def finish 
        puts "      Finish generate rspec:install.\n"
        puts "      To start guard run:\n"
        puts "-----------------------------------------\n"
        puts "guard \n"
        puts "-----------------------------------------\n"
      end      
    end
  end
end

Version data entries

42 entries across 42 versions & 3 rubygems

Version Path
jinda-0.8.0 lib/generators/jinda/rspec_generator.rb
jinda-0.7.7.4 lib/generators/jinda/rspec_generator.rb
jinda-0.7.7.3 lib/generators/jinda/rspec_generator.rb
jinda-0.7.7.2 lib/generators/jinda/rspec_generator.rb
jinda-0.7.7.1 lib/generators/jinda/rspec_generator.rb
jinda_mind-1.0.0 lib/generators/jinda/rspec_generator.rb
jinda-0.7.7 lib/generators/jinda/rspec_generator.rb
jinda-0.7.6 lib/generators/jinda/rspec_generator.rb
jinda-0.7.5.5 lib/generators/jinda/rspec_generator.rb
jinda-0.7.5.4 lib/generators/jinda/rspec_generator.rb
jinda-0.7.5.3 lib/generators/jinda/rspec_generator.rb
jinda-0.7.5.2 lib/generators/jinda/rspec_generator.rb
jinda-0.7.5.0 lib/generators/jinda/rspec_generator.rb
jinda-0.7.3 lib/generators/jinda/rspec_generator.rb
jinda-0.7.2 lib/generators/jinda/rspec_generator.rb
jinda-0.7.1 lib/generators/jinda/rspec_generator.rb
jinda-0.7.0.4 lib/generators/jinda/rspec_generator.rb
jinda-0.7.0.3 lib/generators/jinda/rspec_generator.rb
jinda-0.7.0.2 lib/generators/jinda/rspec_generator.rb
jinda-0.7.0.1 lib/generators/jinda/rspec_generator.rb