Class: TestUnit::Generators::ControllerGenerator

Inherits:
Base
  • Object
show all
Defined in:
railties/lib/rails/generators/test_unit/controller/controller_generator.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#create_test_filesObject



13
14
15
16
# File 'railties/lib/rails/generators/test_unit/controller/controller_generator.rb', line 13

def create_test_files
  template "functional_test.rb",
           File.join("test/controllers", class_path, "#{file_name}_controller_test.rb")
end