Class: Shoulda::Generators::ControllerGenerator

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

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#create_controller_fileObject



11
12
13
# File 'lib/generators/shoulda/controller/controller_generator.rb', line 11

def create_controller_file
  template 'controller.rb', File.join(options[:dir], "#{file_name}_controller_test.rb")
end