Sha256: 88cb5ed7d408fed38a96b5f29612a2aa97c0be92199a84f1fb0646de42dc49f9

Contents?: true

Size: 629 Bytes

Versions: 73

Compression:

Stored size: 629 Bytes

Contents

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 %>

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.7 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.6 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.5 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.4 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.3 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.2 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.1 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.19.0 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.18.8 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.18.7 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.18.0 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.7 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.6 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.5 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.4 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.3 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.2 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.1 lib/generators/coco/templates/test.rb.tt
coveragebook_components-0.17.0 lib/generators/coco/templates/test.rb.tt