Class: ViewComponent::Generators::RspecGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- ViewComponent::Generators::RspecGenerator
- Includes:
- AbstractGenerator
- Defined in:
- lib/generators/view_component/rspec/rspec_generator.rb
Instance Method Summary collapse
Methods included from AbstractGenerator
Instance Method Details
#create_test_file ⇒ Object
12 13 14 |
# File 'lib/generators/view_component/rspec/rspec_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 |