Class: Rspec::Generators::BatchProcessorGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/rspec/batch_processor/batch_processor_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_spec_fileObject



8
9
10
# File 'lib/generators/rspec/batch_processor/batch_processor_generator.rb', line 8

def create_spec_file
  template "batch_spec.rb.erb", File.join("spec/batches/", class_path, "#{file_name}_batch_spec.rb")
end