Class: Shoulda::Generators::ModelGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/shoulda/model/model_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#create_model_test_fileObject



9
10
11
# File 'lib/generators/shoulda/model/model_generator.rb', line 9

def create_model_test_file
  template 'model.rb', File.join(options[:dir], "#{singular_name}_test.rb")
end