Sha256: b02b6e0833a33c0f1e5295ec29514903845616e805a8174bed6309b5f1af4316

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

require "test_helper"

class <%= class_name %>ComponentTest < ActiveSupport::TestCase
  include ActionView::Component::TestHelpers

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
actionview-component-1.5.3 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.5.2 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.5.1 lib/rails/generators/test_unit/templates/component_test.rb.tt
actionview-component-1.5.0 lib/rails/generators/test_unit/templates/component_test.rb.tt