Class: Shoulda::Generators::ScaffoldGenerator

Inherits:
Base
  • Object
show all
Includes:
Rails::Generators::ResourceHelpers
Defined in:
lib/generators/shoulda/scaffold/scaffold_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#create_controller_fileObject



10
11
12
# File 'lib/generators/shoulda/scaffold/scaffold_generator.rb', line 10

def create_controller_file
  template 'scaffold.rb', File.join('test/functional', controller_class_path, "#{controller_file_name}_controller_test.rb")
end