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