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.5.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.5.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.4.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.3.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.2.2 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.2.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.2.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.1.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.0.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-1.17.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.17.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-1.16.0 lib/rails/generators/test_unit/templates/component_test.rb.tt