Class: TestUnit::Generators::RepositoryGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Upgrow::Generators::Helper
Defined in:
lib/generators/test_unit/repository/repository_generator.rb

Instance Method Summary collapse

Methods included from Upgrow::Generators::Helper

#class_name, included, #module_namespacing, #move_file, #namespace_content

Instance Method Details

#create_test_fileObject



10
11
12
13
14
# File 'lib/generators/test_unit/repository/repository_generator.rb', line 10

def create_test_file
  template('repository_test.rb',
    File.join('test/repositories', class_path,
      "#{file_name}_repository_test.rb"))
end