Class: Rspec::Generators::ComponentGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Rspec::Generators::ComponentGenerator
- Includes:
- ViewComponent::AbstractGenerator
- Defined in:
- lib/rails/generators/rspec/component_generator.rb
Instance Method Summary collapse
Methods included from ViewComponent::AbstractGenerator
Instance Method Details
#create_test_file ⇒ Object
12 13 14 |
# File 'lib/rails/generators/rspec/component_generator.rb', line 12 def create_test_file template "component_spec.rb", File.join(spec_component_path, class_path, "#{file_name}_component_spec.rb") end |