Class: ActiveModel::Generators::TestGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/active_model/form_object/generators/test_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



18
19
20
21
# File 'lib/active_model/form_object/generators/test_generator.rb', line 18

def copy_files
  template template_name,
    File.join(test_dir_path, class_path, "#{file_name}_#{operation}_#{test_suffix}.rb")
end