Class: ActiveModel::Generators::TestGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ActiveModel::Generators::TestGenerator
- Defined in:
- lib/active_model/form_object/generators/test_generator.rb
Direct Known Subclasses
MiniTest::Generators::FormObjectGenerator, Rspec::Generators::FormObjectGenerator, TestUnit::Generators::FormObjectGenerator
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
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 |