11 lines
295 B
Ruby
11 lines
295 B
Ruby
require "test_helper"
|
|
|
|
class ModalComponentTest < ViewComponent::TestCase
|
|
def test_component_renders_something_useful
|
|
# assert_equal(
|
|
# %(<span>Hello, components!</span>),
|
|
# render_inline(ModalComponent.new(message: "Hello, components!")).css("span").to_html
|
|
# )
|
|
end
|
|
end
|