add component test

This commit is contained in:
Andrew Brown 2021-08-03 00:52:21 -07:00
parent 280118c72e
commit df2eaf6241

View File

@ -0,0 +1,10 @@
require "test_helper"
class ButtonComponentTest < ViewComponent::TestCase
def test_component_renders_something_useful
# assert_equal(
# %(<span>Hello, components!</span>),
# render_inline(ButtonComponent.new(message: "Hello, components!")).css("span").to_html
# )
end
end