13 lines
328 B
Ruby
13 lines
328 B
Ruby
# frozen_string_literal: true
|
|
|
|
require 'test_helper'
|
|
|
|
class NoticeComponentTest < ViewComponent::TestCase
|
|
def test_component_renders_something_useful
|
|
# assert_equal(
|
|
# %(<span>Hello, components!</span>),
|
|
# render_inline(NoticeComponent.new(message: "Hello, components!")).css("span").to_html
|
|
# )
|
|
end
|
|
end
|