Skip to content

Commit 9fb6601

Browse files
committed
Fix test
1 parent 4fc4d35 commit 9fb6601

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

test/fixtures/search_index.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/ruby_lsp_rails/hover_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ module RubyLsp
77
module Rails
88
class HoverTest < ActiveSupport::TestCase
99
setup do
10+
body = File.read("#{__dir__}/../../test/fixtures/search_index.js")
1011
stub_request(:get, %r{https://api\.rubyonrails\.org/v.*/js/search_index\.js})
1112
.with(
1213
headers: {
1314
"Host" => "api.rubyonrails.org",
1415
"User-Agent" => "Ruby",
1516
},
1617
)
17-
.to_return(status: 200, body: "{}", headers: {})
18+
.to_return(status: 200, body: body, headers: {})
1819

1920
# Build the Rails documents index ahead of time
2021
capture_io do

0 commit comments

Comments
 (0)