Class: Jinda::Generators::MinitestGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Jinda::Generators::MinitestGenerator
- Defined in:
- lib/generators/jinda/minitest_generator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
4 5 6 |
# File 'lib/generators/jinda/minitest_generator.rb', line 4 def self.source_root File.dirname(__FILE__) + "/templates" end |
Instance Method Details
#finish ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/generators/jinda/minitest_generator.rb', line 16 def finish puts " Finish guard init minitest.\n" puts " Finish copy test directory for minitest\n" puts " Finish copy jinda test for minitest\n" puts "-----------------------------------------\n" puts " Please remove spec directory if exist\n" puts " To start guard run:\n" puts "-----------------------------------------\n" puts "guard \n" puts "-----------------------------------------\n" end |
#gen_minitest ⇒ Object
9 10 11 12 13 |
# File 'lib/generators/jinda/minitest_generator.rb', line 9 def gen_minitest #copy test directory with jinda test for minitest directory "test" run "guard init minitest" end |