diff --git a/test/expectations/hover/documented_namespaced_class.exp.json b/test/expectations/hover/documented_namespaced_class.exp.json new file mode 100644 index 000000000..463f0294c --- /dev/null +++ b/test/expectations/hover/documented_namespaced_class.exp.json @@ -0,0 +1,24 @@ +{ + "params": [ + { + "line": 1, + "character": 6 + } + ], + "result": { + "contents": { + "kind": "markdown", + "value": "```ruby\nFoo::Bar\n```\n\n**Definitions**: [fake.rb](file:///fake.rb#L2,1-3,3) | [fake.rb](file:///fake.rb#L6,1-7,3) | [fake.rb](file:///fake.rb#L11,3-12,5)\n\n\n\nThis is the documentation for Foo::Bar\n\nThis is more documentation for Foo::Bar\n\nThis is even more documentation for Foo::Bar" + }, + "range": { + "start": { + "line": 1, + "character": 6 + }, + "end": { + "line": 1, + "character": 14 + } + } + } +} diff --git a/test/fixtures/documented_namespaced_class.rb b/test/fixtures/documented_namespaced_class.rb new file mode 100644 index 000000000..839ca5f4f --- /dev/null +++ b/test/fixtures/documented_namespaced_class.rb @@ -0,0 +1,13 @@ +# This is the documentation for Foo::Bar +class Foo::Bar +end + +# This is more documentation for Foo::Bar +class Foo::Bar +end + +class Foo + # This is even more documentation for Foo::Bar + class Bar + end +end