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-3.14.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/view_component-2.83.0/lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.13.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.12.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.12.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.11.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.10.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-2.83.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.9.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.8.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.7.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.6.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.5.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.4.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.3.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.2.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.1.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.0.0 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.0.0.rc6 lib/rails/generators/test_unit/templates/component_test.rb.tt
view_component-3.0.0.rc5 lib/rails/generators/test_unit/templates/component_test.rb.tt