Class: Jinda::Generators::MinitestGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/jinda/minitest_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



4
5
6
# File 'lib/generators/jinda/minitest_generator.rb', line 4

def self.source_root
  File.dirname(__FILE__) + "/templates"
end

Instance Method Details

#finishObject



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_minitestObject



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