Class: Rspec::Generators::OperationGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_filesObject



7
8
9
# File 'lib/generators/rspec/operation/operation_generator.rb', line 7

def copy_files
  template 'operation_spec.rb.erb', File.join('spec/operations', class_path, "#{file_name}_spec.rb")
end