Class: Rspec::Generators::DecoratorGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Rspec::Generators::DecoratorGenerator
- Defined in:
- lib/generators/rspec/decorator_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_decorator_spec ⇒ Object
10 11 12 |
# File 'lib/generators/rspec/decorator_generator.rb', line 10 def create_decorator_spec template "decorator_spec.rb", File.join("spec/decorators", class_path, "#{file_name}_decorator_spec.rb") end |