Skip to content

Commit

Permalink
A possible alternative to test_compiles_unrendered_component
Browse files Browse the repository at this point in the history
(Though I wonder if it would be better to just delete this test entirely...)
  • Loading branch information
jdelStrother committed May 13, 2023
1 parent 7ecde1c commit 8d093e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/sandbox/test/rendering_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ def test_validations_component
def test_compiles_unrendered_component
skip "this might not still be compiled if it's been reloaded since boot"
assert UnreferencedComponent.compiled?
# Or a possible alternative is booting a fresh process:
# assert_equal "true\n", `ruby -r bundler/setup -r ./test/sandbox/config/environment.rb -e "puts UnreferencedComponent.compiled?"`
end

def test_compiles_components_without_initializers
Expand Down

0 comments on commit 8d093e3

Please sign in to comment.