class Minitest::Generators::InstallGenerator

Public Class Methods

source_root() click to toggle source
# File lib/generators/minitest/install/install_generator.rb, line 16
def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__), "templates"))
end

Public Instance Methods

copy_minitest_files() click to toggle source
# File lib/generators/minitest/install/install_generator.rb, line 20
def copy_minitest_files
  empty_directory_with_keep_file "test/fixtures"
  empty_directory_with_keep_file "test/fixtures/files"
  empty_directory_with_keep_file "test/controllers"
  empty_directory_with_keep_file "test/mailers"
  empty_directory_with_keep_file "test/models"
  empty_directory_with_keep_file "test/helpers"
  empty_directory_with_keep_file "test/integration"

  template "test/channels/application_cable/connection_test.rb"
  template "test/application_system_test_case.rb"
  template "test/test_helper.rb"
end