Class: Rspec::Generators::CollectionGenerator

Inherits:
Guacamole::Generators::Base show all
Defined in:
lib/rails/generators/rspec/collection/collection_generator.rb

Instance Method Summary collapse

Methods inherited from Guacamole::Generators::Base

source_root

Instance Method Details

#create_collection_specObject



8
9
10
# File 'lib/rails/generators/rspec/collection/collection_generator.rb', line 8

def create_collection_spec
  template 'collection_spec.rb.tt', File.join('spec/collections', class_path, "#{file_name}_collection_spec.rb")
end