Class: Minitest::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/minitest/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject


13
14
15
# File 'lib/generators/minitest/install/install_generator.rb', line 13

def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
end

Instance Method Details

#copy_minitest_filesObject


17
18
19
# File 'lib/generators/minitest/install/install_generator.rb', line 17

def copy_minitest_files
  template 'test_helper.rb', File.join("test", "test_helper.rb")
end