class Rspec::Generators::ComponentGenerator

def create_test_file

def create_test_file
  template "component_spec.rb", File.join("spec/components", class_path, "#{file_name}_component_spec.rb")
end

def file_name

def file_name
  @_file_name ||= super.sub(/_component\z/i, "")
end