Skip to content

Commit aa4b944

Browse files
st0012andyw8
authored andcommitted
Update hover test case to reflect the change in the latest ruby-lsp
After Shopify/ruby-lsp#1280, the hover request will now contain information about the class's information too. This previously was not the case because this project has Sorbet in the depdenencies.
1 parent 7e29976 commit aa4b944

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/ruby_lsp_rails/hover_test.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ class User < ApplicationRecord
4545
RUBY
4646

4747
assert_equal(<<~CONTENT, response.contents.value)
48+
```ruby
49+
User
50+
```
51+
52+
**Definitions**: [fake.rb](file:///fake.rb#L1,1-2,4)
53+
54+
55+
4856
[Schema](file://#{@client.root}/db/schema.rb)
4957
5058
**id**: integer

0 commit comments

Comments
 (0)