Sha256: 28ceb7fdf8642e3e143bf25e0b064b28ba1eb9706e57f87b35bc402321ac899e

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

Stored size: 388 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 %>Component, attr: "value") { "Hello, components!" }.css("span").to_html
    # )
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
actionview-component-1.6.0 lib/rails/generators/test_unit/templates/component_test.rb.tt