class RubyIndexer::ReferenceFinderTest
def test_finds_method_references
def test_finds_method_references refs = find_method_references("foo", <<~RUBY) class Bar def foo end def baz foo end end RUBY assert_equal(2, refs.size) assert_equal("foo", refs[0].name) assert_equal(2, refs[0].location.start_line) assert_equal("foo", refs[1].name) assert_equal(6, refs[1].location.start_line) end