Class: TestUnit::Generators::RecordGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Upgrow::Generators::Helper
Defined in:
lib/generators/test_unit/record/record_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
# File 'lib/generators/test_unit/record/record_generator.rb', line 10

def create_test_file
  template('record_test.rb',
    File.join('test/records', class_path, "#{file_name}_record_test.rb"))
end