class RubyIndexer::ReferenceFinderTest
def test_finds_singleton_methods
def test_finds_singleton_methods # The current implementation matches on both `Bar.foo` and `Bar#foo` even though they are different refs = find_method_references("foo", <<~RUBY) class Bar class << self def foo end end def foo end end Bar.foo RUBY assert_equal(3, refs.size) assert_equal("foo", refs[0].name) assert_equal(3, refs[0].location.start_line) assert_equal("foo", refs[1].name) assert_equal(7, refs[1].location.start_line) assert_equal("foo", refs[2].name) assert_equal(11, refs[2].location.start_line) end