mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
add component test
This commit is contained in:
parent
280118c72e
commit
df2eaf6241
10
test/components/button_component_test.rb
Normal file
10
test/components/button_component_test.rb
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user