Sha256: ba9877438ded371c27e2c4887c030d1a1cc6d00d4a8eef8f8d13ad9c633074dd
Contents?: true
Size: 342 Bytes
Versions: 1
Compression:
Stored size: 342 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, 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.14.0 | lib/rails/generators/test_unit/templates/component_test.rb.tt |