Class: TestUnit::PresenterGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_test_fileObject



5
6
7
# File 'lib/generators/test_unit/presenter_generator.rb', line 5

def create_test_file
  template 'presenter_test.rb', File.join('test/unit/presenters', "#{singular_name}_presenter_test.rb")
end