Class: TestUnit::Generators::ComponentGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/rails/generators/test_unit/component_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_test_fileObject



9
10
11
# File 'lib/rails/generators/test_unit/component_generator.rb', line 9

def create_test_file
  template "component_test.rb", File.join("test/components", class_path, "#{file_name}_component_test.rb")
end