@@ -531,13 +531,6 @@ func TestIndentationAndFormatting(t *testing.T) {
531531 t .Errorf ("Line %d: gem dependency should have 6-space indent: %q" , i + 1 , line )
532532 }
533533
534- // Platform entries should have 2-space indent
535- if strings .TrimSpace (line ) == "ruby" && strings .HasPrefix (buf .String ()[strings .Index (buf .String (), line )- 20 :], "PLATFORMS" ) {
536- if ! strings .HasPrefix (line , " ruby" ) {
537- t .Errorf ("Line %d: platform should have 2-space indent: %q" , i + 1 , line )
538- }
539- }
540-
541534 // Top-level dependencies should have 2-space indent
542535 if strings .Contains (line , "rails (~> 8.1.0.rc1)" ) && ! strings .HasPrefix (line , " rails" ) {
543536 t .Errorf ("Line %d: dependency should have 2-space indent: %q" , i + 1 , line )
@@ -572,8 +565,8 @@ func TestPlatformDeduplication(t *testing.T) {
572565 rubyCount := strings .Count (output , " ruby\n " )
573566 linuxCount := strings .Count (output , " x86_64-linux\n " )
574567
575- if rubyCount != 1 {
576- t .Errorf ("Expected 'ruby' platform to appear once , found %d times" , rubyCount )
568+ if rubyCount != 0 {
569+ t .Errorf ("Expected 'ruby' platform to be omitted , found %d times" , rubyCount )
577570 }
578571 if linuxCount != 1 {
579572 t .Errorf ("Expected 'x86_64-linux' platform to appear once, found %d times" , linuxCount )
0 commit comments