Skip to content

Commit 6f022bd

Browse files
committed
Fix failing test
1 parent de814a0 commit 6f022bd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

test/ruby_lsp_rails/indexing_enhancement_test.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ module RubyLsp
77
module Rails
88
class IndexingEnhancementTest < ActiveSupport::TestCase
99
class << self
10-
# For these tests, it's convenient to have the index fully populated with Rails information, but we don't have
11-
# to reindex on every single example or that will be too slow
10+
# For these tests, it's convenient to have the index fully populated with Rails information.
11+
# Reindexing each time is slow, but prevent state leaking between tests.
1212
def populated_index
13-
@index ||= begin
14-
index = RubyIndexer::Index.new
15-
index.index_all
16-
index
17-
end
13+
index = RubyIndexer::Index.new
14+
index.index_all
15+
index
1816
end
1917
end
2018

@@ -69,7 +67,7 @@ class Post
6967
module Verifiable
7068
extend ActiveSupport::Concern
7169
72-
class_methods
70+
# class_methods
7371
end
7472
7573
class Post

0 commit comments

Comments
 (0)