@@ -489,15 +489,15 @@ class ConstantPathReferences
489489 end
490490 RUBY
491491
492- foo = @index [ "Foo::<Class: Foo>" ] #: as !nil
492+ foo = @index [ "Foo::<Foo>" ] #: as !nil
493493 . first #: as Entry::Class
494494 assert_equal ( [ "A1" , "A2" , "A3" , "A4" , "A5" , "A6" ] , foo . mixin_operation_module_names )
495495
496- qux = @index [ "Foo::Qux::<Class: Qux>" ] #: as !nil
496+ qux = @index [ "Foo::Qux::<Qux>" ] #: as !nil
497497 . first #: as Entry::Class
498498 assert_equal ( [ "Corge" , "Corge" , "Baz" ] , qux . mixin_operation_module_names )
499499
500- constant_path_references = @index [ "ConstantPathReferences::<Class: ConstantPathReferences>" ] #: as !nil
500+ constant_path_references = @index [ "ConstantPathReferences::<ConstantPathReferences>" ] #: as !nil
501501 . first #: as Entry::Class
502502 assert_equal ( [ "Foo::Bar" , "Foo::Bar2" ] , constant_path_references . mixin_operation_module_names )
503503 end
@@ -512,7 +512,7 @@ class << self
512512 end
513513 RUBY
514514
515- foo = @index [ "Foo::<Class: Foo>" ] #: as !nil
515+ foo = @index [ "Foo::<Foo>" ] #: as !nil
516516 . first #: as Entry::SingletonClass
517517 assert_equal ( 4 , foo . location . start_line )
518518 assert_equal ( "Some extra comments" , foo . comments )
@@ -527,7 +527,7 @@ class << bar
527527 end
528528 RUBY
529529
530- singleton = @index [ "Foo::<Class: bar>" ] #: as !nil
530+ singleton = @index [ "Foo::<bar>" ] #: as !nil
531531 . first #: as Entry::SingletonClass
532532
533533 # Even though this is not correct, we consider any dynamic singleton class block as a regular singleton class.
@@ -547,7 +547,7 @@ class Bar
547547 end
548548 RUBY
549549
550- assert_entry ( "Foo::<Class: Foo>::Bar" , Entry ::Class , "/fake/path/foo.rb:2-4:3-7" )
550+ assert_entry ( "Foo::<Foo>::Bar" , Entry ::Class , "/fake/path/foo.rb:2-4:3-7" )
551551 end
552552
553553 def test_name_location_points_to_constant_path_location
@@ -614,10 +614,10 @@ class << self
614614 entries = @index . instance_variable_get ( :@entries )
615615 refute ( entries . key? ( "::Foo" ) )
616616 refute ( entries . key? ( "::Foo::Bar" ) )
617- refute ( entries . key? ( "::Foo::Bar::<Class: Bar>" ) )
617+ refute ( entries . key? ( "::Foo::Bar::<Bar>" ) )
618618 assert_entry ( "Foo" , Entry ::Module , "/fake/path/foo.rb:0-0:5-3" )
619619 assert_entry ( "Foo::Bar" , Entry ::Class , "/fake/path/foo.rb:1-2:4-5" )
620- assert_entry ( "Foo::Bar::<Class: Bar>" , Entry ::SingletonClass , "/fake/path/foo.rb:2-4:3-7" )
620+ assert_entry ( "Foo::Bar::<Bar>" , Entry ::SingletonClass , "/fake/path/foo.rb:2-4:3-7" )
621621 end
622622
623623 def test_indexing_namespaces_inside_nested_top_level_references
@@ -683,13 +683,13 @@ def baz; end
683683 RUBY
684684
685685 # Verify we didn't index the incorrect name
686- assert_nil ( @index [ "Foo::Bar::<Class: Foo::Bar>" ] )
686+ assert_nil ( @index [ "Foo::Bar::<Foo::Bar>" ] )
687687
688688 # Verify we indexed the correct name
689- assert_entry ( "Foo::Bar::<Class: Bar>" , Entry ::SingletonClass , "/fake/path/foo.rb:1-2:3-5" )
689+ assert_entry ( "Foo::Bar::<Bar>" , Entry ::SingletonClass , "/fake/path/foo.rb:1-2:3-5" )
690690
691691 method = @index [ "baz" ] &.first #: as Entry::Method
692- assert_equal ( "Foo::Bar::<Class: Bar>" , method . owner &.name )
692+ assert_equal ( "Foo::Bar::<Bar>" , method . owner &.name )
693693 end
694694
695695 def test_lazy_comments_with_spaces_are_properly_attributed
0 commit comments