Sha256: 8deaa9f41a802d5de7fc0e8d82fc829a2cdd480fb187c5c865e0115a33c2e919

Contents?: true

Size: 320 Bytes

Versions: 32

Compression:

Stored size: 320 Bytes

Contents

require "test_helper"

class <%= class_name %>ComponentTest < ViewComponent::TestCase
  test "component renders something useful" do
    # assert_equal(
    #   %(<span>Hello, components!</span>),
    #   render_inline(<%= class_name %>Component.new(message: "Hello, components!")).css("span").to_html
    # )
  end
end

Version data entries

32 entries across 32 versions & 2 rubygems

Version Path
view_component-2.19.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.19.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.18.2 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.18.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.18.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.17.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.17.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.16.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.15.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.14.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.14.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.13.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.12.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.11.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.11.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.10.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.9.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.8.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.7.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.6.0 lib/rails/generators/test_unit/templates/component_test.rb.tt