Class: Rspec::Generators::FacetGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_spec_fileObject



8
9
10
# File 'lib/generators/rspec/facet/facet_generator.rb', line 8

def create_spec_file
  template "facet_spec.rb.erb", File.join("spec/facets/", class_path, "#{file_name}_facet_spec.rb")
end