Class: Rys::Generators::Rspec::ModelGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rys/rspec/model_generator.rb

Instance Method Summary collapse

Methods inherited from Base

source_root

Instance Method Details

#generate_model_specObject


13
14
15
16
# File 'lib/generators/rys/rspec/model_generator.rb', line 13

def generate_model_spec
  target_file = File.join('spec/models', class_path, "#{file_name}_spec.rb")
  template 'model_spec.rb', target_file
end