Class: Rspec::Generators::DecoratorGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_spec_fileObject



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

def create_spec_file
  template 'decorator_spec.rb', File.join('spec/decorators', class_path, "#{file_name}_decorator_spec.rb")
end