@@ -39,7 +39,7 @@ def test_strategies_flag_with_gitattributes_override
3939
4040 assert status . success? , "CLI command failed: #{ stderr } "
4141 assert_match ( /language:\s +Ruby/ , stdout , "Should detect Ruby language" )
42- assert_match ( /strategy:\s +GitAttributes / , stdout , "Should show GitAttributes strategy" )
42+ assert_match ( /strategy:\s +.* \( overridden by \. gitattributes \) / , stdout , "Should show override in strategy" )
4343 end
4444
4545 def test_strategies_flag_with_normal_detection
@@ -81,7 +81,7 @@ def test_breakdown_with_gitattributes_strategies
8181 assert status . success? , "CLI command failed: #{ stderr } "
8282
8383 # Check that GitAttributes strategy appears for the overridden file
84- assert_match ( /override\. special \[ GitAttributes \ ] / , stdout , "Should show GitAttributes strategy for overridden file" )
84+ assert_match ( /override\. special \[ .* \( overridden by \. gitattributes \) \ ] / , stdout , "Should show override for overridden file" )
8585
8686 # Check that normal detection strategies appear for other files
8787 assert_match ( /normal\. js \[ Extension\] / , stdout , "Should show Extension strategy for .js file" )
@@ -134,6 +134,6 @@ def test_repository_scan_with_gitattributes
134134
135135 # Verify that both normal and override detection work in repository scan
136136 assert_match ( /src\/ app\. rb \[ Extension\] / , stdout , "Should show Extension strategy for Ruby file" )
137- assert_match ( /config\. config \[ GitAttributes \ ] / , stdout , "Should show GitAttributes strategy for overridden file" )
137+ assert_match ( /config\. config \[ .* \( overridden by \. gitattributes \) \ ] / , stdout , "Should show override for overridden file" )
138138 end
139139end
0 commit comments