Skip to content

Commit a4f5d3c

Browse files
hsbtclaude
andcommitted
Fix test_box assertion for lazy-loaded error_highlight
error_highlight is now lazy-loaded, so it should not be in $LOADED_FEATURES at boot time. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 108fd04 commit a4f5d3c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/ruby/test_box.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,8 @@ def test_prelude_gems_and_loaded_features
656656
assert_match EXPERIMENTAL_WARNING_LINE_PATTERNS[1], error[1]
657657

658658
assert_includes output.grep(/^before:/).join("\n"), '/bundled_gems.rb'
659-
assert_includes output.grep(/^before:/).join("\n"), '/error_highlight.rb'
659+
# error_highlight is lazy-loaded, so not in $LOADED_FEATURES at boot
660+
refute_includes output.grep(/^before:/).join("\n"), '/error_highlight.rb'
660661
assert_includes output.grep(/^after:/).join("\n"), '/bundled_gems.rb'
661662
assert_includes output.grep(/^after:/).join("\n"), '/error_highlight.rb'
662663
end

0 commit comments

Comments
 (0)