Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
joelhawksley committed May 25, 2022
1 parent 20e5e4a commit 45daf39
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/sandbox/test/components/my_component_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ class MyComponentTest < ViewComponent::TestCase
include ViewComponent::RenderPreviewHelper

def test_render_preview
Rails.autoloaders.main.push_dir(Rails.root.join("test/components/previews"))
render_preview(:default)

assert_selector("div", text: "hello,world!")
Expand Down

0 comments on commit 45daf39

Please sign in to comment.