Sha256: c84f88154fd0eebe1d26b75ca3e818dad924bb37d7dd3bd3b2fa1ca94b549fcf

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

require "test_helper"

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
actionview-component-1.16.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.15.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.14.1 lib/rails/generators/test_unit/templates/component_test.rb.tt