require "test_helper" <% class_namespace_modules.each_with_index do |mod, i| %> <%= indent(i) %>module <%= mod %><% end %> <%= indent(modules_count) %>class <%= component_class.to_s.gsub("::","") %>Test < CocoTestCase <%= indent(modules_count + 1) %>it "renders the component" do <%= indent(modules_count + 2) %>render_inline(Coco::<%= zeitwerk_class_name %>.new) <%= indent(modules_count + 2) %>assert_selector("[data-component='<%= component_ref %>']") <%= indent(modules_count + 1) %>end <%= indent(modules_count) %>end<% class_namespace_modules.each_with_index do |mod, i| %> <%= indent(modules_count - i - 1) %>end<% end %>