Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
/ rucoa Public archive
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions spec/rucoa/handlers/text_document_hover_handler_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -362,5 +362,40 @@ class B
)
end
end

context 'when aliased method call is hovered' do
let(:content) do
<<~RUBY
class A
def foo
end
alias bar foo
end

A.new.bar
RUBY
end

let(:position) do
Rucoa::Position.new(
column: 9,
line: 7
)
end

it 'responds hover' do
subject
expect(server.responses).to match(
[
hash_including(
'id' => 1,
'result' => hash_including(
'contents' => /\AA#foo/
)
)
]
)
end
end
end
end