Sha256: 4c88ccb39c8b29524f5fc7a4825fa1b6b929abb64666f0f2aaaadd561c4122db

Contents?: true

Size: 350 Bytes

Versions: 63

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class <%= class_name %>ComponentTest < ViewComponent::TestCase
  def test_component_renders_something_useful
    # assert_equal(
    #   %(<span>Hello, components!</span>),
    #   render_inline(<%= class_name %>Component.new(message: "Hello, components!")).css("span").to_html
    # )
  end
end

Version data entries

63 entries across 63 versions & 2 rubygems

Version Path
view_component-2.52.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.51.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.50.0 lib/rails/generators/test_unit/templates/component_test.rb.tt